----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  D:\Vicard\VV\re\inprogress\BRV\results\results_size.log
  log type:  text
 opened on:  29 Sep 2017, 19:38:01

. 
. * Table A.8 *
. 
. use $Output\dataset_brv_fe, clear

. global condition  "entry_ele!=1994 & entry_ele!=1995"

. 
. sort ijk year

. gen size_l1     = value_l1/value_tot_l1
(3,328,694 missing values generated)

. 
. *use version of shock computed with jkt in prices 
. gen diff_jkt_ele1                   = diff_jkt*age_ele1
(3,354,512 missing values generated)

. gen diff_jkt_size_l1            = diff_jkt*size_l1
(3,354,512 missing values generated)

. gen size_l1_ele1                        = age_ele1*size_l1
(3,328,694 missing values generated)

. 
. forvalues x = 1(1)10{
  2.         g diff_jkt_ele1_`x'             = diff_jkt * ele1_`x' 
  3. }
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)

. *
. foreach var in diff_jkt{
  2.         /*jkt in prices only*/
.         eststo: reg dprior `var' age_ele1 `var'_ele1 if $condition, r cluster(i)
  3.         eststo: reg dprior `var'_ele1_* ele1_* if $condition      , r cluster(i)
  4.         /*jkt in prices and size linear: size_l1, control for size interacted with age*/
.         eststo: reg dprior `var' size_l1 age_ele1 `var'_ele1 size_l1_ele1 if $condition, r cluster(i)
  5.         eststo: reg dprior `var'_ele1_* ele1_* size_l1       size_l1_ele1 if $condition, r cluster(i)
  6. *
.                 foreach size in size_l1{
  7.                 * 10 bins *
.                 egen jkt_hs4 = group(country hs4 year)
  8.                 bys jkt_hs4: egen num_hs4 = count(`size')       
  9.                 forvalues x = 10(10)90{
 10.                 bys jkt_hs4: egen p_`x'_size_l1 = pctile(`size') if num_hs4>9, p(`x')
 11.                 }
 12.                 gen sizecat      = 1  if `size'< p_10_size_l1 & `size' !=. & p_10_size_l1!=.
 13.                 replace sizecat  = 2  if `size'>=p_10_size_l1 & `size'<p_20_size_l1 & size_l1 !=. 
 14.                 replace sizecat  = 3  if `size'>=p_20_size_l1 & `size'<p_30_size_l1 & size_l1 !=.
 15.                 replace sizecat  = 4  if `size'>=p_30_size_l1 & `size'<p_40_size_l1 & size_l1 !=.
 16.                 replace sizecat  = 5  if `size'>=p_40_size_l1 & `size'<p_50_size_l1 & size_l1 !=.
 17.                 replace sizecat  = 6  if `size'>=p_50_size_l1 & `size'<p_60_size_l1 & size_l1 !=.
 18.                 replace sizecat  = 7  if `size'>=p_60_size_l1 & `size'<p_70_size_l1 & size_l1 !=.
 19.                 replace sizecat  = 8  if `size'>=p_70_size_l1 & `size'<p_80_size_l1 & size_l1 !=.
 20.                 replace sizecat  = 9  if `size'>=p_80_size_l1 & `size'<p_90_size_l1 & size_l1 !=.
 21.                 replace sizecat  = 10 if `size'>=p_90_size_l1 & `size' !=. & p_90_size_l1!=.
 22. 
.                 tab sizecat, gen(sizecat_d)
 23.                 forvalues x = 1(1)10{
 24.                 qui gen inter`x' = age_ele1 *  sizecat_d`x'
 25.                 }
 26.                 drop sizecat_d10 inter10
 27.         }
 28.         /*size non linear*/
.         reg dprior `var' age_ele1 `var'_ele1                                                    if $condition & sizecat!=., r cluster(i)
 29.         eststo: reg dprior `var' sizecat_d* age_ele1 `var'_ele1 inter*      if $condition, r cluster(i)
 30.         eststo: reg dprior `var'_ele1_* ele1_* sizecat_d* inter*                        if $condition, r cluster(i)
 31.         
.         label var size_l1                       "Size$ _{ijk,t-1/t}$"
 32.         label var `var'_size_l1         "\hspace{1cm} $\times$ Size$ _{ijk,t-1/t}$"
 33.         label var  age_ele1                     "Age$ _{ijkt}$" 
 34.         label var diff_jkt_ele1         "\hspace{1cm} $\times$ Age$ _{ijkt}$"
 35.         label var diff_jkt_ele1_1       "\hspace{1cm} $\times$ Age$ _{ijkt}=1$" 
 36.         label var diff_jkt_ele1_2       "\hspace{1cm} $\times$ Age$ _{ijkt}=2$" 
 37.         label var diff_jkt_ele1_3       "\hspace{1cm} $\times$ Age$ _{ijkt}=3$" 
 38.         label var diff_jkt_ele1_4       "\hspace{1cm} $\times$ Age$ _{ijkt}=4$"
 39.         label var diff_jkt_ele1_5       "\hspace{1cm} $\times$ Age$ _{ijkt}=5$" 
 40.         label var diff_jkt_ele1_6       "\hspace{1cm} $\times$ Age$ _{ijkt}=6$"
 41.         label var diff_jkt_ele1_7       "\hspace{1cm} $\times$ Age$ _{ijkt}=7$"
 42.         label var diff_jkt_ele1_8       "\hspace{1cm} $\times$ Age$ _{ijkt}=8$" 
 43.         label var diff_jkt_ele1_9       "\hspace{1cm} $\times$ Age$ _{ijkt}=9$" 
 44.         label var diff_jkt_ele1_10      "\hspace{1cm} $\times$ Age$ _{ijkt}=10$" 
 45.         
.         drop p_* num_hs4 jkt_hs4 sizecat* inter* 
 46.         set linesize 250
 47.         esttab, mtitles drop(_cons sizecat_d* inter* ele1_*) b(%5.3f) se(%5.3f) compress r2 starlevels(c 0.1 b 0.05 a 0.01)  se 
 48.         esttab, mtitles drop(_cons sizecat_d* inter* ele1_*) b(%5.3f) se(%5.3f) r2  starlevels({$^c$} 0.1 {$^b$} 0.05 {$^a$} 0.01) se tex label  title() 
 49.         eststo clear
 50.         *
. }

Linear regression                               Number of obs     =  1,870,377
                                                F(3, 45708)       =    2228.94
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0520
                                                Root MSE          =     1.1659

                                  (Std. Err. adjusted for 45,709 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1032345    .001995    51.75   0.000     .0993242    .1071447
     age_ele1 |  -.0338266   .0006872   -49.22   0.000    -.0351735   -.0324796
diff_jkt_ele1 |  -.0034175   .0004354    -7.85   0.000    -.0042708   -.0025642
        _cons |   .1522288    .002517    60.48   0.000     .1472955    .1571621
-------------------------------------------------------------------------------
(est1 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,870,377
                                                F(17, 45708)      =     548.43
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0537
                                                Root MSE          =     1.1649

                                     (Std. Err. adjusted for 45,709 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0964069   .0016958    56.85   0.000      .093083    .0997308
 diff_jkt_ele1_3 |   .0934047   .0015984    58.44   0.000     .0902718    .0965376
 diff_jkt_ele1_4 |   .0873482    .002019    43.26   0.000      .083391    .0913054
 diff_jkt_ele1_5 |   .0862997   .0025241    34.19   0.000     .0813524    .0912471
 diff_jkt_ele1_6 |    .082287   .0025126    32.75   0.000     .0773623    .0872117
 diff_jkt_ele1_7 |   .0792587   .0028462    27.85   0.000     .0736801    .0848373
 diff_jkt_ele1_8 |    .076446   .0039545    19.33   0.000     .0686951     .084197
 diff_jkt_ele1_9 |   .0765583   .0052195    14.67   0.000      .066328    .0867886
diff_jkt_ele1_10 |   .0735697   .0093864     7.84   0.000     .0551722    .0919671
          ele1_1 |          0  (omitted)
          ele1_2 |   .1670465   .0094691    17.64   0.000      .148487    .1856061
          ele1_3 |   .0299354   .0093868     3.19   0.001     .0115372    .0483337
          ele1_4 |   .0061173   .0092671     0.66   0.509    -.0120464     .024281
          ele1_5 |  -.0069955   .0096157    -0.73   0.467    -.0258424    .0118515
          ele1_6 |   -.009449   .0095616    -0.99   0.323      -.02819    .0092919
          ele1_7 |  -.0065468   .0096555    -0.68   0.498    -.0254718    .0123782
          ele1_8 |  -.0109475    .010352    -1.06   0.290    -.0312377    .0093426
          ele1_9 |          0  (omitted)
         ele1_10 |  -.0230642   .0144416    -1.60   0.110    -.0513699    .0052415
           _cons |  -.0392744   .0092248    -4.26   0.000    -.0573552   -.0211936
----------------------------------------------------------------------------------
(est2 stored)

Linear regression                               Number of obs     =  1,870,377
                                                F(5, 45708)       =    1914.68
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0635
                                                Root MSE          =     1.1588

                                  (Std. Err. adjusted for 45,709 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1028604   .0019755    52.07   0.000     .0989884    .1067325
      size_l1 |  -1.053323   .0160138   -65.78   0.000     -1.08471   -1.021935
     age_ele1 |  -.0401215   .0007583   -52.91   0.000    -.0416079   -.0386352
diff_jkt_ele1 |  -.0034068   .0004328    -7.87   0.000     -.004255   -.0025586
 size_l1_ele1 |   .1085856   .0026029    41.72   0.000     .1034838    .1136874
        _cons |   .2363858    .002995    78.93   0.000     .2305156    .2422561
-------------------------------------------------------------------------------
(est3 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,870,377
                                                F(19, 45708)      =     662.01
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0648
                                                Root MSE          =      1.158

                                     (Std. Err. adjusted for 45,709 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0961605   .0016813    57.19   0.000     .0928651    .0994559
 diff_jkt_ele1_3 |   .0929706   .0015847    58.67   0.000     .0898646    .0960766
 diff_jkt_ele1_4 |   .0869184   .0019992    43.48   0.000     .0829999    .0908368
 diff_jkt_ele1_5 |   .0859413   .0025051    34.31   0.000     .0810313    .0908513
 diff_jkt_ele1_6 |   .0820392   .0024935    32.90   0.000     .0771518    .0869265
 diff_jkt_ele1_7 |   .0789926   .0028313    27.90   0.000     .0734433    .0845419
 diff_jkt_ele1_8 |   .0760975   .0039418    19.31   0.000     .0683716    .0838234
 diff_jkt_ele1_9 |   .0763255   .0052183    14.63   0.000     .0660975    .0865535
diff_jkt_ele1_10 |   .0735517    .009385     7.84   0.000      .055157    .0919464
          ele1_1 |          0  (omitted)
          ele1_2 |   .2170603   .0099488    21.82   0.000     .1975604    .2365602
          ele1_3 |   .0877578   .0098496     8.91   0.000     .0684524    .1070632
          ele1_4 |   .0592175   .0096483     6.14   0.000     .0403066    .0781284
          ele1_5 |   .0377198   .0098953     3.81   0.000     .0183249    .0571146
          ele1_6 |   .0250534   .0097446     2.57   0.010     .0059538     .044153
          ele1_7 |   .0171617    .009767     1.76   0.079    -.0019819    .0363052
          ele1_8 |   .0012943   .0103975     0.12   0.901     -.019085    .0216736
          ele1_9 |          0  (omitted)
         ele1_10 |  -.0354794   .0143912    -2.47   0.014    -.0636863   -.0072724
         size_l1 |   -1.01468    .016573   -61.22   0.000    -1.047163   -.9821966
    size_l1_ele1 |   .1006162   .0025888    38.87   0.000      .095542    .1056904
           _cons |  -.0257354   .0096513    -2.67   0.008    -.0446522   -.0068187
----------------------------------------------------------------------------------
(est4 stored)
(3328725 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(6,798,529 missing values generated)
(308,158 real changes made)
(302,179 real changes made)
(310,397 real changes made)
(318,004 real changes made)
(295,670 real changes made)
(303,274 real changes made)
(309,274 real changes made)
(301,049 real changes made)
(343,332 real changes made)

    sizecat |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |    276,848        9.02        9.02
          2 |    308,158       10.04       19.07
          3 |    302,179        9.85       28.92
          4 |    310,397       10.12       39.03
          5 |    318,004       10.36       49.40
          6 |    295,670        9.64       59.03
          7 |    303,274        9.88       68.92
          8 |    309,274       10.08       79.00
          9 |    301,049        9.81       88.81
         10 |    343,332       11.19      100.00
------------+-----------------------------------
      Total |  3,068,185      100.00

Linear regression                               Number of obs     =  1,501,840
                                                F(3, 43245)       =    1914.30
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0510
                                                Root MSE          =     1.1574

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1008809    .002127    47.43   0.000     .0967119    .1050498
     age_ele1 |  -.0349915    .000769   -45.50   0.000    -.0364987   -.0334843
diff_jkt_ele1 |  -.0033358   .0004271    -7.81   0.000    -.0041729   -.0024987
        _cons |   .1579823   .0028165    56.09   0.000      .152462    .1635027
-------------------------------------------------------------------------------

Linear regression                               Number of obs     =  1,501,840
                                                F(21, 43245)      =     714.59
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0951
                                                Root MSE          =     1.1302

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1024897   .0020696    49.52   0.000     .0984333    .1065462
   sizecat_d1 |   .9589807   .0130454    73.51   0.000     .9334116    .9845499
   sizecat_d2 |   .7202254   .0124401    57.90   0.000     .6958425    .7446083
   sizecat_d3 |   .5648021    .012355    45.71   0.000     .5405862    .5890181
   sizecat_d4 |   .4564345   .0121962    37.42   0.000     .4325297    .4803393
   sizecat_d5 |    .358367   .0117223    30.57   0.000      .335391     .381343
   sizecat_d6 |   .2730028   .0119941    22.76   0.000     .2494942    .2965114
   sizecat_d7 |   .2151849   .0118551    18.15   0.000     .1919487    .2384212
   sizecat_d8 |   .1634378   .0110271    14.82   0.000     .1418245    .1850511
   sizecat_d9 |   .0849623   .0110149     7.71   0.000     .0633729    .1065517
     age_ele1 |   .0191469   .0017275    11.08   0.000     .0157609    .0225328
diff_jkt_ele1 |   -.003364   .0004185    -8.04   0.000    -.0041842   -.0025437
       inter1 |  -.0331827   .0028005   -11.85   0.000    -.0386717   -.0276937
       inter2 |   -.042253   .0025136   -16.81   0.000    -.0471796   -.0373264
       inter3 |  -.0405853   .0024241   -16.74   0.000    -.0453366   -.0358341
       inter4 |  -.0373025   .0023049   -16.18   0.000    -.0418202   -.0327849
       inter5 |  -.0310581   .0022943   -13.54   0.000    -.0355549   -.0265613
       inter6 |  -.0247261   .0023239   -10.64   0.000    -.0292811   -.0201711
       inter7 |  -.0217841   .0023256    -9.37   0.000    -.0263424   -.0172259
       inter8 |  -.0185696    .002215    -8.38   0.000    -.0229111   -.0142282
       inter9 |   -.009657   .0022019    -4.39   0.000    -.0139728   -.0053411
        _cons |  -.3619558   .0102991   -35.14   0.000    -.3821423   -.3417693
-------------------------------------------------------------------------------
(est5 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,501,840
                                                F(35, 43245)      =     513.82
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0956
                                                Root MSE          =     1.1299

                                     (Std. Err. adjusted for 43,246 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0958669   .0017789    53.89   0.000     .0923802    .0993536
 diff_jkt_ele1_3 |   .0929072   .0016849    55.14   0.000     .0896049    .0962096
 diff_jkt_ele1_4 |   .0865485   .0020536    42.15   0.000     .0825235    .0905735
 diff_jkt_ele1_5 |     .08665   .0024817    34.92   0.000     .0817858    .0915142
 diff_jkt_ele1_6 |   .0812737   .0026412    30.77   0.000     .0760969    .0864505
 diff_jkt_ele1_7 |   .0779947    .002856    27.31   0.000     .0723969    .0835925
 diff_jkt_ele1_8 |   .0756361   .0040542    18.66   0.000     .0676897    .0835824
 diff_jkt_ele1_9 |   .0771306   .0053672    14.37   0.000     .0666107    .0876505
diff_jkt_ele1_10 |   .0747641   .0091845     8.14   0.000     .0567622     .092766
          ele1_1 |          0  (omitted)
          ele1_2 |  -.1356024   .0140546    -9.65   0.000    -.1631497    -.108055
          ele1_3 |  -.1811403   .0128609   -14.08   0.000    -.2063479   -.1559326
          ele1_4 |  -.1529211   .0117979   -12.96   0.000    -.1760452    -.129797
          ele1_5 |  -.1269398   .0112846   -11.25   0.000    -.1490578   -.1048217
          ele1_6 |  -.0965654   .0107473    -8.99   0.000    -.1176303   -.0755004
          ele1_7 |  -.0632588   .0104047    -6.08   0.000    -.0836522   -.0428655
          ele1_8 |    -.03834   .0109918    -3.49   0.000    -.0598841    -.016796
          ele1_9 |          0  (omitted)
         ele1_10 |   .0096274   .0152875     0.63   0.529    -.0203365    .0395913
      sizecat_d1 |   .9186185   .0135774    67.66   0.000     .8920065    .9452304
      sizecat_d2 |   .6883269   .0127476    54.00   0.000     .6633414    .7133123
      sizecat_d3 |    .538492    .012603    42.73   0.000     .5137898    .5631942
      sizecat_d4 |   .4347326     .01237    35.14   0.000     .4104871    .4589781
      sizecat_d5 |   .3402823   .0117847    28.87   0.000      .317184    .3633806
      sizecat_d6 |    .258655   .0120654    21.44   0.000     .2350067    .2823034
      sizecat_d7 |    .204268   .0119208    17.14   0.000     .1809029     .227633
      sizecat_d8 |   .1555437   .0110423    14.09   0.000     .1339006    .1771868
      sizecat_d9 |   .0804651   .0110232     7.30   0.000     .0588594    .1020708
          inter1 |  -.0237555   .0028544    -8.32   0.000    -.0293501   -.0181609
          inter2 |   -.035139   .0025233   -13.93   0.000    -.0400846   -.0301933
          inter3 |  -.0348693   .0024485   -14.24   0.000    -.0396684   -.0300702
          inter4 |  -.0326974   .0023191   -14.10   0.000    -.0372429   -.0281518
          inter5 |  -.0272943   .0022811   -11.97   0.000    -.0317653   -.0228233
          inter6 |  -.0217921   .0023252    -9.37   0.000    -.0263496   -.0172346
          inter7 |  -.0195841   .0023279    -8.41   0.000    -.0241468   -.0150213
          inter8 |   -.017012   .0022103    -7.70   0.000    -.0213443   -.0126797
          inter9 |  -.0087871   .0022002    -3.99   0.000    -.0130995   -.0044748
           _cons |  -.1519449   .0118063   -12.87   0.000    -.1750855   -.1288042
----------------------------------------------------------------------------------
(est6 stored)

----------------------------------------------------------------------------
                 (1)        (2)        (3)        (4)        (5)        (6) 
                est1       est2       est3       est4       est5       est6 
----------------------------------------------------------------------------
diff_jkt       0.103a                0.103a                0.102a           
             (0.002)               (0.002)               (0.002)            

age_ele1      -0.034a               -0.040a                0.019a           
             (0.001)               (0.001)               (0.002)            

diff_jk~e1    -0.003a               -0.003a               -0.003a           
             (0.000)               (0.000)               (0.000)            

diff_jk~_1                0.000                 0.000                 0.000 
                            (.)                   (.)                   (.) 

diff_jkt~2                0.096a                0.096a                0.096a
                        (0.002)               (0.002)               (0.002) 

diff_jkt~3                0.093a                0.093a                0.093a
                        (0.002)               (0.002)               (0.002) 

diff_jkt~4                0.087a                0.087a                0.087a
                        (0.002)               (0.002)               (0.002) 

diff_jkt~5                0.086a                0.086a                0.087a
                        (0.003)               (0.003)               (0.002) 

diff_jkt~6                0.082a                0.082a                0.081a
                        (0.003)               (0.002)               (0.003) 

diff_jkt~7                0.079a                0.079a                0.078a
                        (0.003)               (0.003)               (0.003) 

diff_jkt~8                0.076a                0.076a                0.076a
                        (0.004)               (0.004)               (0.004) 

diff_jkt~9                0.077a                0.076a                0.077a
                        (0.005)               (0.005)               (0.005) 

diff_jk~10                0.074a                0.074a                0.075a
                        (0.009)               (0.009)               (0.009) 

size_l1                             -1.053a    -1.015a                      
                                   (0.016)    (0.017)                       

size_l1_~1                           0.109a     0.101a                      
                                   (0.003)    (0.003)                       
----------------------------------------------------------------------------
N            1870377    1870377    1870377    1870377    1501840    1501840 
R-sq           0.052      0.054      0.064      0.065      0.095      0.096 
----------------------------------------------------------------------------
Standard errors in parentheses
c p<0.1, b p<0.05, a p<0.01

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{6}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}\\
                    &\multicolumn{1}{c}{est1}&\multicolumn{1}{c}{est2}&\multicolumn{1}{c}{est3}&\multicolumn{1}{c}{est4}&\multicolumn{1}{c}{est5}&\multicolumn{1}{c}{est6}\\
\hline
$\widehat{a}\_{ijkt}-\varepsilon^q\_{ijk,t-1}$ (for size controls)&       0.103{$^a$}&                  &       0.103{$^a$}&                  &       0.102{$^a$}&                  \\
                    &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      &                  \\
[1em]
Age$ \_{ijkt}$       &      -0.034{$^a$}&                  &      -0.040{$^a$}&                  &       0.019{$^a$}&                  \\
                    &     (0.001)      &                  &     (0.001)      &                  &     (0.002)      &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}$&      -0.003{$^a$}&                  &      -0.003{$^a$}&                  &      -0.003{$^a$}&                  \\
                    &     (0.000)      &                  &     (0.000)      &                  &     (0.000)      &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=1$&                  &       0.000      &                  &       0.000      &                  &       0.000      \\
                    &                  &         (.)      &                  &         (.)      &                  &         (.)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=2$&                  &       0.096{$^a$}&                  &       0.096{$^a$}&                  &       0.096{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=3$&                  &       0.093{$^a$}&                  &       0.093{$^a$}&                  &       0.093{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=4$&                  &       0.087{$^a$}&                  &       0.087{$^a$}&                  &       0.087{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=5$&                  &       0.086{$^a$}&                  &       0.086{$^a$}&                  &       0.087{$^a$}\\
                    &                  &     (0.003)      &                  &     (0.003)      &                  &     (0.002)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=6$&                  &       0.082{$^a$}&                  &       0.082{$^a$}&                  &       0.081{$^a$}\\
                    &                  &     (0.003)      &                  &     (0.002)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=7$&                  &       0.079{$^a$}&                  &       0.079{$^a$}&                  &       0.078{$^a$}\\
                    &                  &     (0.003)      &                  &     (0.003)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=8$&                  &       0.076{$^a$}&                  &       0.076{$^a$}&                  &       0.076{$^a$}\\
                    &                  &     (0.004)      &                  &     (0.004)      &                  &     (0.004)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=9$&                  &       0.077{$^a$}&                  &       0.076{$^a$}&                  &       0.077{$^a$}\\
                    &                  &     (0.005)      &                  &     (0.005)      &                  &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=10$&                  &       0.074{$^a$}&                  &       0.074{$^a$}&                  &       0.075{$^a$}\\
                    &                  &     (0.009)      &                  &     (0.009)      &                  &     (0.009)      \\
[1em]
Size$ \_{ijk,t-1/t}$ &                  &                  &      -1.053{$^a$}&      -1.015{$^a$}&                  &                  \\
                    &                  &                  &     (0.016)      &     (0.017)      &                  &                  \\
[1em]
size\_l1\_ele1        &                  &                  &       0.109{$^a$}&       0.101{$^a$}&                  &                  \\
                    &                  &                  &     (0.003)      &     (0.003)      &                  &                  \\
\hline
Observations        &     1870377      &     1870377      &     1870377      &     1870377      &     1501840      &     1501840      \\
\(R^{2}\)           &       0.052      &       0.054      &       0.064      &       0.065      &       0.095      &       0.096      \\
\hline\hline
\multicolumn{7}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{7}{l}{\footnotesize {$^c$} p<0.1, {$^b$} p<0.05, {$^a$} p<0.01}\\
\end{tabular}
}

. 
. 
. * Table A.9 - part 1 market share qty*
. 
. use $Output\dataset_brv_fe, clear

. global condition  "entry_ele!=1994 & entry_ele!=1995"

. 
. sort ijk year

. gen size_l1     = quantity_l1/quantity_tot_l1
(3,328,694 missing values generated)

. 
. *use version of shock computed with jkt in prices 
. gen diff_jkt_ele1                   = diff_jkt*age_ele1
(3,354,512 missing values generated)

. gen diff_jkt_size_l1            = diff_jkt*size_l1
(3,354,512 missing values generated)

. gen size_l1_ele1                        = age_ele1*size_l1
(3,328,694 missing values generated)

. 
. forvalues x = 1(1)10{
  2.         g diff_jkt_ele1_`x'             = diff_jkt * ele1_`x' 
  3. }
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)

. *
. foreach var in diff_jkt{
  2.         /*jkt in prices and size linear: size_l1, control for size interacted with age*/
.         eststo: reg dprior `var' size_l1 age_ele1 `var'_ele1 size_l1_ele1 if $condition, r cluster(i)
  3.         eststo: reg dprior `var'_ele1_* ele1_* size_l1       size_l1_ele1 if $condition, r cluster(i)
  4. *
.                 foreach size in size_l1{
  5.                 * 10 bins *
.                 egen jkt_hs4 = group(country hs4 year)
  6.                 bys jkt_hs4: egen num_hs4 = count(`size')       
  7.                 forvalues x = 10(10)90{
  8.                 bys jkt_hs4: egen p_`x'_size_l1 = pctile(`size') if num_hs4>9, p(`x')
  9.                 }
 10.                 gen sizecat      = 1  if `size'< p_10_size_l1 & `size' !=. & p_10_size_l1!=.
 11.                 replace sizecat  = 2  if `size'>=p_10_size_l1 & `size'<p_20_size_l1 & size_l1 !=. 
 12.                 replace sizecat  = 3  if `size'>=p_20_size_l1 & `size'<p_30_size_l1 & size_l1 !=.
 13.                 replace sizecat  = 4  if `size'>=p_30_size_l1 & `size'<p_40_size_l1 & size_l1 !=.
 14.                 replace sizecat  = 5  if `size'>=p_40_size_l1 & `size'<p_50_size_l1 & size_l1 !=.
 15.                 replace sizecat  = 6  if `size'>=p_50_size_l1 & `size'<p_60_size_l1 & size_l1 !=.
 16.                 replace sizecat  = 7  if `size'>=p_60_size_l1 & `size'<p_70_size_l1 & size_l1 !=.
 17.                 replace sizecat  = 8  if `size'>=p_70_size_l1 & `size'<p_80_size_l1 & size_l1 !=.
 18.                 replace sizecat  = 9  if `size'>=p_80_size_l1 & `size'<p_90_size_l1 & size_l1 !=.
 19.                 replace sizecat  = 10 if `size'>=p_90_size_l1 & `size' !=. & p_90_size_l1!=.
 20. 
.                 tab sizecat, gen(sizecat_d)
 21.                 forvalues x = 1(1)10{
 22.                 qui gen inter`x' = age_ele1 *  sizecat_d`x'
 23.                 }
 24.                 drop sizecat_d10 inter10
 25.         }
 26.         /*size non linear*/
.         reg dprior `var' age_ele1 `var'_ele1                                                    if $condition & sizecat!=., r cluster(i)
 27.         eststo: reg dprior `var' sizecat_d* age_ele1 `var'_ele1 inter*      if $condition, r cluster(i)
 28.         eststo: reg dprior `var'_ele1_* ele1_* sizecat_d* inter*                        if $condition, r cluster(i)
 29.         
.         label var size_l1                       "Size$ _{ijk,t-1/t}$"
 30.         label var `var'_size_l1         "\hspace{1cm} $\times$ Size$ _{ijk,t-1/t}$"
 31.         label var  age_ele1                     "Age$ _{ijkt}$" 
 32.         label var diff_jkt_ele1         "\hspace{1cm} $\times$ Age$ _{ijkt}$"
 33.         label var diff_jkt_ele1_1       "\hspace{1cm} $\times$ Age$ _{ijkt}=1$" 
 34.         label var diff_jkt_ele1_2       "\hspace{1cm} $\times$ Age$ _{ijkt}=2$" 
 35.         label var diff_jkt_ele1_3       "\hspace{1cm} $\times$ Age$ _{ijkt}=3$" 
 36.         label var diff_jkt_ele1_4       "\hspace{1cm} $\times$ Age$ _{ijkt}=4$"
 37.         label var diff_jkt_ele1_5       "\hspace{1cm} $\times$ Age$ _{ijkt}=5$" 
 38.         label var diff_jkt_ele1_6       "\hspace{1cm} $\times$ Age$ _{ijkt}=6$"
 39.         label var diff_jkt_ele1_7       "\hspace{1cm} $\times$ Age$ _{ijkt}=7$"
 40.         label var diff_jkt_ele1_8       "\hspace{1cm} $\times$ Age$ _{ijkt}=8$" 
 41.         label var diff_jkt_ele1_9       "\hspace{1cm} $\times$ Age$ _{ijkt}=9$" 
 42.         label var diff_jkt_ele1_10      "\hspace{1cm} $\times$ Age$ _{ijkt}=10$" 
 43.         
.         drop p_* num_hs4 jkt_hs4 sizecat* inter* 
 44. 
. }

Linear regression                               Number of obs     =  1,870,377
                                                F(5, 45708)       =    2007.81
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0613
                                                Root MSE          =     1.1602

                                  (Std. Err. adjusted for 45,709 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |    .097766   .0019157    51.03   0.000     .0940112    .1015207
      size_l1 |  -.8907336   .0145707   -61.13   0.000    -.9192925   -.8621748
     age_ele1 |  -.0390836   .0007599   -51.43   0.000    -.0405731   -.0375941
diff_jkt_ele1 |  -.0029876   .0004289    -6.96   0.000    -.0038283   -.0021468
 size_l1_ele1 |   .0903942   .0024277    37.23   0.000     .0856358    .0951525
        _cons |   .2234368    .002971    75.21   0.000     .2176136      .22926
-------------------------------------------------------------------------------
(est1 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,870,377
                                                F(19, 45708)      =     688.60
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0627
                                                Root MSE          =     1.1593

                                     (Std. Err. adjusted for 45,709 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0922239   .0016205    56.91   0.000     .0890478       .0954
 diff_jkt_ele1_3 |   .0888489   .0015414    57.64   0.000     .0858278    .0918701
 diff_jkt_ele1_4 |   .0832712   .0019587    42.51   0.000     .0794322    .0871103
 diff_jkt_ele1_5 |   .0826769   .0024762    33.39   0.000     .0778235    .0875304
 diff_jkt_ele1_6 |   .0794305   .0024699    32.16   0.000     .0745894    .0842715
 diff_jkt_ele1_7 |   .0769031    .002813    27.34   0.000     .0713895    .0824167
 diff_jkt_ele1_8 |   .0747023   .0039198    19.06   0.000     .0670194    .0823851
 diff_jkt_ele1_9 |   .0755586   .0051977    14.54   0.000      .065371    .0857462
diff_jkt_ele1_10 |   .0733284    .009382     7.82   0.000     .0549396    .0917171
          ele1_1 |          0  (omitted)
          ele1_2 |   .2082543   .0099706    20.89   0.000     .1887118    .2277968
          ele1_3 |   .0769455   .0098502     7.81   0.000      .057639     .096252
          ele1_4 |   .0493074   .0096366     5.12   0.000     .0304195    .0681952
          ele1_5 |   .0293145   .0098849     2.97   0.003       .00994     .048689
          ele1_6 |   .0187076   .0097491     1.92   0.055    -.0004008     .037816
          ele1_7 |   .0130385   .0097716     1.33   0.182     -.006114    .0321911
          ele1_8 |  -.0007404    .010398    -0.07   0.943    -.0211206    .0196398
          ele1_9 |          0  (omitted)
         ele1_10 |  -.0330032   .0143714    -2.30   0.022    -.0611714   -.0048351
         size_l1 |  -.8569328   .0150595   -56.90   0.000    -.8864497    -.827416
    size_l1_ele1 |   .0833211   .0023918    34.84   0.000     .0786332    .0880089
           _cons |  -.0262333   .0096165    -2.73   0.006    -.0450818   -.0073847
----------------------------------------------------------------------------------
(est2 stored)
(3328725 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(6,800,885 missing values generated)
(308,927 real changes made)
(302,744 real changes made)
(310,728 real changes made)
(318,268 real changes made)
(295,802 real changes made)
(303,408 real changes made)
(309,343 real changes made)
(301,111 real changes made)
(343,362 real changes made)

    sizecat |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |    274,492        8.95        8.95
          2 |    308,927       10.07       19.02
          3 |    302,744        9.87       28.88
          4 |    310,728       10.13       39.01
          5 |    318,268       10.37       49.38
          6 |    295,802        9.64       59.02
          7 |    303,408        9.89       68.91
          8 |    309,343       10.08       78.99
          9 |    301,111        9.81       88.81
         10 |    343,362       11.19      100.00
------------+-----------------------------------
      Total |  3,068,185      100.00

Linear regression                               Number of obs     =  1,501,840
                                                F(3, 43245)       =    1914.30
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0510
                                                Root MSE          =     1.1574

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1008809    .002127    47.43   0.000     .0967119    .1050498
     age_ele1 |  -.0349915    .000769   -45.50   0.000    -.0364987   -.0334843
diff_jkt_ele1 |  -.0033358   .0004271    -7.81   0.000    -.0041729   -.0024987
        _cons |   .1579823   .0028165    56.09   0.000      .152462    .1635027
-------------------------------------------------------------------------------

Linear regression                               Number of obs     =  1,501,840
                                                F(21, 43245)      =     682.33
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0875
                                                Root MSE          =     1.1349

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .0823349   .0018733    43.95   0.000     .0786631    .0860066
   sizecat_d1 |    .921425   .0140093    65.77   0.000     .8939666    .9488834
   sizecat_d2 |   .7151651   .0125415    57.02   0.000     .6905836    .7397467
   sizecat_d3 |    .559996   .0121734    46.00   0.000     .5361359    .5838561
   sizecat_d4 |   .4741923   .0125456    37.80   0.000     .4496027     .498782
   sizecat_d5 |   .3878751   .0117275    33.07   0.000     .3648891    .4108612
   sizecat_d6 |   .3098035   .0115976    26.71   0.000      .287072    .3325351
   sizecat_d7 |   .2300671   .0116814    19.70   0.000     .2071713    .2529628
   sizecat_d8 |   .1860884   .0112872    16.49   0.000     .1639652    .2082115
   sizecat_d9 |   .1100583   .0109274    10.07   0.000     .0886405    .1314762
     age_ele1 |   .0163863   .0017315     9.46   0.000     .0129926      .01978
diff_jkt_ele1 |  -.0021372   .0003968    -5.39   0.000    -.0029149   -.0013595
       inter1 |  -.0354051   .0030349   -11.67   0.000    -.0413535   -.0294567
       inter2 |   -.047294   .0025655   -18.43   0.000    -.0523225   -.0422656
       inter3 |  -.0410785   .0023638   -17.38   0.000    -.0457116   -.0364453
       inter4 |  -.0396947   .0024249   -16.37   0.000    -.0444476   -.0349418
       inter5 |  -.0349209   .0022982   -15.20   0.000    -.0394253   -.0304164
       inter6 |  -.0289421   .0022696   -12.75   0.000    -.0333906   -.0244936
       inter7 |  -.0216044   .0023721    -9.11   0.000    -.0262538   -.0169551
       inter8 |  -.0208502   .0022794    -9.15   0.000    -.0253179   -.0163825
       inter9 |   -.012795   .0022649    -5.65   0.000    -.0172343   -.0083557
        _cons |  -.3459386    .010063   -34.38   0.000    -.3656623   -.3262149
-------------------------------------------------------------------------------
(est3 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,501,840
                                                F(35, 43245)      =     501.30
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0882
                                                Root MSE          =     1.1345

                                     (Std. Err. adjusted for 43,246 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0785958   .0015704    50.05   0.000     .0755178    .0816739
 diff_jkt_ele1_3 |   .0766448    .001571    48.79   0.000     .0735656     .079724
 diff_jkt_ele1_4 |   .0714991   .0019012    37.61   0.000     .0677728    .0752254
 diff_jkt_ele1_5 |   .0723018   .0023567    30.68   0.000     .0676826    .0769211
 diff_jkt_ele1_6 |   .0682599   .0024618    27.73   0.000     .0634347    .0730851
 diff_jkt_ele1_7 |   .0656296   .0028133    23.33   0.000     .0601156    .0711437
 diff_jkt_ele1_8 |   .0648172   .0038674    16.76   0.000     .0572371    .0723974
 diff_jkt_ele1_9 |   .0675918   .0050209    13.46   0.000     .0577507    .0774329
diff_jkt_ele1_10 |   .0654026   .0085366     7.66   0.000     .0486708    .0821344
          ele1_1 |          0  (omitted)
          ele1_2 |   -.120195   .0139461    -8.62   0.000    -.1475296   -.0928604
          ele1_3 |  -.1788813   .0127372   -14.04   0.000    -.2038464   -.1539163
          ele1_4 |  -.1539491   .0117068   -13.15   0.000    -.1768947   -.1310035
          ele1_5 |   -.128678   .0111723   -11.52   0.000    -.1505759   -.1067802
          ele1_6 |  -.0982765   .0105448    -9.32   0.000    -.1189445   -.0776085
          ele1_7 |  -.0648943   .0102187    -6.35   0.000    -.0849232   -.0448655
          ele1_8 |  -.0396114   .0108259    -3.66   0.000    -.0608303   -.0183925
          ele1_9 |          0  (omitted)
         ele1_10 |   .0121314   .0148886     0.81   0.415    -.0170504    .0413133
      sizecat_d1 |   .8771732   .0144932    60.52   0.000     .8487662    .9055802
      sizecat_d2 |   .6801033   .0128758    52.82   0.000     .6548666    .7053401
      sizecat_d3 |   .5314482    .012371    42.96   0.000     .5072008    .5556957
      sizecat_d4 |   .4504589   .0127435    35.35   0.000     .4254813    .4754364
      sizecat_d5 |   .3682796   .0118172    31.16   0.000     .3451176    .3914416
      sizecat_d6 |    .294189   .0116602    25.23   0.000     .2713348    .3170432
      sizecat_d7 |    .217721   .0116472    18.69   0.000     .1948922    .2405498
      sizecat_d8 |   .1773401   .0113166    15.67   0.000     .1551593    .1995209
      sizecat_d9 |   .1047769    .010936     9.58   0.000     .0833422    .1262116
          inter1 |  -.0250399   .0030638    -8.17   0.000     -.031045   -.0190347
          inter2 |  -.0393929   .0025529   -15.43   0.000    -.0443966   -.0343892
          inter3 |  -.0348514   .0023381   -14.91   0.000    -.0394341   -.0302688
          inter4 |  -.0346215   .0024156   -14.33   0.000    -.0393561   -.0298868
          inter5 |  -.0308256   .0022704   -13.58   0.000    -.0352756   -.0263756
          inter6 |  -.0257286   .0022469   -11.45   0.000    -.0301325   -.0213246
          inter7 |  -.0190694   .0023386    -8.15   0.000    -.0236531   -.0144856
          inter8 |  -.0190376   .0022719    -8.38   0.000    -.0234905   -.0145847
          inter9 |  -.0117275   .0022519    -5.21   0.000    -.0161413   -.0073138
           _cons |  -.1515672   .0122602   -12.36   0.000    -.1755975    -.127537
----------------------------------------------------------------------------------
(est4 stored)

. 
. 
. * Table A.9 - part 2 robustness with value (not market share) *
. 
. use $Output\dataset_brv_fe, clear

. global condition  "entry_ele!=1994 & entry_ele!=1995"

. 
. sort ijk year

. gen size_l1     = log(value_l1)
(2,735,188 missing values generated)

. 
. *use version of shock computed with jkt in prices 
. gen diff_jkt_ele1                   = diff_jkt*age_ele1
(3,354,512 missing values generated)

. gen diff_jkt_size_l1            = diff_jkt*size_l1
(3,354,512 missing values generated)

. gen size_l1_ele1                        = age_ele1*size_l1
(2,735,188 missing values generated)

. 
. forvalues x = 1(1)10{
  2.         g diff_jkt_ele1_`x'             = diff_jkt * ele1_`x' 
  3. }
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)

. *
. foreach var in diff_jkt{
  2.         /*jkt in prices and size linear: size_l1, control for size interacted with age*/
.         eststo: reg dprior `var' size_l1 age_ele1 `var'_ele1 size_l1_ele1 if $condition, r cluster(i)
  3.         eststo: reg dprior `var'_ele1_* ele1_* size_l1       size_l1_ele1 if $condition, r cluster(i)
  4. *
.                 foreach size in size_l1{
  5.                 * 10 bins *
.                 egen jkt_hs4 = group(country hs4 year)
  6.                 bys jkt_hs4: egen num_hs4 = count(`size')       
  7.                 forvalues x = 10(10)90{
  8.                 bys jkt_hs4: egen p_`x'_size_l1 = pctile(`size') if num_hs4>9, p(`x')
  9.                 }
 10.                 gen sizecat      = 1  if `size'< p_10_size_l1 & `size' !=. & p_10_size_l1!=.
 11.                 replace sizecat  = 2  if `size'>=p_10_size_l1 & `size'<p_20_size_l1 & size_l1 !=. 
 12.                 replace sizecat  = 3  if `size'>=p_20_size_l1 & `size'<p_30_size_l1 & size_l1 !=.
 13.                 replace sizecat  = 4  if `size'>=p_30_size_l1 & `size'<p_40_size_l1 & size_l1 !=.
 14.                 replace sizecat  = 5  if `size'>=p_40_size_l1 & `size'<p_50_size_l1 & size_l1 !=.
 15.                 replace sizecat  = 6  if `size'>=p_50_size_l1 & `size'<p_60_size_l1 & size_l1 !=.
 16.                 replace sizecat  = 7  if `size'>=p_60_size_l1 & `size'<p_70_size_l1 & size_l1 !=.
 17.                 replace sizecat  = 8  if `size'>=p_70_size_l1 & `size'<p_80_size_l1 & size_l1 !=.
 18.                 replace sizecat  = 9  if `size'>=p_80_size_l1 & `size'<p_90_size_l1 & size_l1 !=.
 19.                 replace sizecat  = 10 if `size'>=p_90_size_l1 & `size' !=. & p_90_size_l1!=.
 20. 
.                 tab sizecat, gen(sizecat_d)
 21.                 forvalues x = 1(1)10{
 22.                 qui gen inter`x' = age_ele1 *  sizecat_d`x'
 23.                 }
 24.                 drop sizecat_d10 inter10
 25.         }
 26.         /*size non linear*/
.         reg dprior `var' age_ele1 `var'_ele1                                                    if $condition & sizecat!=., r cluster(i)
 27.         eststo: reg dprior `var' sizecat_d* age_ele1 `var'_ele1 inter*      if $condition, r cluster(i)
 28.         eststo: reg dprior `var'_ele1_* ele1_* sizecat_d* inter*                        if $condition, r cluster(i)
 29.         
.         label var size_l1                       "Size$ _{ijk,t-1/t}$"
 30.         label var `var'_size_l1         "\hspace{1cm} $\times$ Size$ _{ijk,t-1/t}$"
 31.         label var  age_ele1                     "Age$ _{ijkt}$" 
 32.         label var diff_jkt_ele1         "\hspace{1cm} $\times$ Age$ _{ijkt}$"
 33.         label var diff_jkt_ele1_1       "\hspace{1cm} $\times$ Age$ _{ijkt}=1$" 
 34.         label var diff_jkt_ele1_2       "\hspace{1cm} $\times$ Age$ _{ijkt}=2$" 
 35.         label var diff_jkt_ele1_3       "\hspace{1cm} $\times$ Age$ _{ijkt}=3$" 
 36.         label var diff_jkt_ele1_4       "\hspace{1cm} $\times$ Age$ _{ijkt}=4$"
 37.         label var diff_jkt_ele1_5       "\hspace{1cm} $\times$ Age$ _{ijkt}=5$" 
 38.         label var diff_jkt_ele1_6       "\hspace{1cm} $\times$ Age$ _{ijkt}=6$"
 39.         label var diff_jkt_ele1_7       "\hspace{1cm} $\times$ Age$ _{ijkt}=7$"
 40.         label var diff_jkt_ele1_8       "\hspace{1cm} $\times$ Age$ _{ijkt}=8$" 
 41.         label var diff_jkt_ele1_9       "\hspace{1cm} $\times$ Age$ _{ijkt}=9$" 
 42.         label var diff_jkt_ele1_10      "\hspace{1cm} $\times$ Age$ _{ijkt}=10$" 
 43.         
.         drop p_* num_hs4 jkt_hs4 sizecat* inter* 
 44.         *
. }

Linear regression                               Number of obs     =  1,870,377
                                                F(5, 45708)       =    2689.24
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0917
                                                Root MSE          =     1.1413

                                  (Std. Err. adjusted for 45,709 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1044646   .0019433    53.76   0.000     .1006556    .1082736
      size_l1 |  -.1837766   .0024577   -74.78   0.000    -.1885937   -.1789594
     age_ele1 |  -.1475467   .0033831   -43.61   0.000    -.1541776   -.1409158
diff_jkt_ele1 |  -.0035062   .0004285    -8.18   0.000     -.004346   -.0026665
 size_l1_ele1 |   .0145288   .0003403    42.69   0.000     .0138618    .0151958
        _cons |   1.844792   .0220608    83.62   0.000     1.801552    1.888031
-------------------------------------------------------------------------------
(est5 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_2 omitted because of collinearity

Linear regression                               Number of obs     =  1,870,377
                                                F(19, 45708)      =     880.36
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0919
                                                Root MSE          =     1.1412

                                     (Std. Err. adjusted for 45,709 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0976161   .0016596    58.82   0.000     .0943631     .100869
 diff_jkt_ele1_3 |   .0944637   .0015404    61.32   0.000     .0914444     .097483
 diff_jkt_ele1_4 |   .0881151   .0019453    45.30   0.000     .0843021     .091928
 diff_jkt_ele1_5 |   .0869882   .0024905    34.93   0.000     .0821068    .0918696
 diff_jkt_ele1_6 |   .0832743   .0024694    33.72   0.000     .0784344    .0881143
 diff_jkt_ele1_7 |   .0797835   .0027497    29.02   0.000     .0743941    .0851729
 diff_jkt_ele1_8 |   .0766649    .003863    19.85   0.000     .0690935    .0842364
 diff_jkt_ele1_9 |    .076786   .0051721    14.85   0.000     .0666487    .0869234
diff_jkt_ele1_10 |   .0735284   .0092403     7.96   0.000     .0554173    .0916395
          ele1_1 |          0  (omitted)
          ele1_2 |          0  (omitted)
          ele1_3 |  -.1771181   .0042396   -41.78   0.000    -.1854278   -.1688084
          ele1_4 |  -.3003551    .007074   -42.46   0.000    -.3142203   -.2864899
          ele1_5 |  -.4323711   .0104153   -41.51   0.000    -.4527853   -.4119569
          ele1_6 |  -.5617132    .014176   -39.62   0.000    -.5894983   -.5339281
          ele1_7 |   -.691672   .0179736   -38.48   0.000    -.7269006   -.6564435
          ele1_8 |  -.8335883    .022246   -37.47   0.000    -.8771907   -.7899858
          ele1_9 |  -.9644578   .0282416   -34.15   0.000    -1.019812   -.9091038
         ele1_10 |  -1.130233    .031966   -35.36   0.000    -1.192887   -1.067579
         size_l1 |  -.1798526   .0026678   -67.42   0.000    -.1850815   -.1746238
    size_l1_ele1 |   .0136676   .0003694    37.00   0.000     .0129436    .0143916
           _cons |   1.541895   .0196845    78.33   0.000     1.503313    1.580477
----------------------------------------------------------------------------------
(est6 stored)
(3328725 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(6,739,342 missing values generated)
(367,573 real changes made)
(361,598 real changes made)
(369,735 real changes made)
(377,380 real changes made)
(355,020 real changes made)
(362,638 real changes made)
(368,624 real changes made)
(360,404 real changes made)
(402,684 real changes made)

    sizecat |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |    336,035        9.18        9.18
          2 |    367,573       10.04       19.22
          3 |    361,598        9.88       29.09
          4 |    369,735       10.10       39.19
          5 |    377,380       10.31       49.49
          6 |    355,020        9.70       59.19
          7 |    362,638        9.90       69.09
          8 |    368,624       10.07       79.16
          9 |    360,404        9.84       89.00
         10 |    402,684       11.00      100.00
------------+-----------------------------------
      Total |  3,661,691      100.00

Linear regression                               Number of obs     =  1,501,840
                                                F(3, 43245)       =    1914.30
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0510
                                                Root MSE          =     1.1574

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1008809    .002127    47.43   0.000     .0967119    .1050498
     age_ele1 |  -.0349915    .000769   -45.50   0.000    -.0364987   -.0334843
diff_jkt_ele1 |  -.0033358   .0004271    -7.81   0.000    -.0041729   -.0024987
        _cons |   .1579823   .0028165    56.09   0.000      .152462    .1635027
-------------------------------------------------------------------------------

Linear regression                               Number of obs     =  1,501,840
                                                F(21, 43245)      =     744.21
                                                Prob > F          =     0.0000
                                                R-squared         =     0.1062
                                                Root MSE          =     1.1232

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1032089   .0020677    49.92   0.000     .0991562    .1072615
   sizecat_d1 |   1.006712   .0161181    62.46   0.000     .9751198    1.038303
   sizecat_d2 |   .7755925   .0151135    51.32   0.000     .7459697    .8052154
   sizecat_d3 |   .5898671   .0147979    39.86   0.000      .560863    .6188712
   sizecat_d4 |   .4563254   .0144793    31.52   0.000     .4279456    .4847052
   sizecat_d5 |   .3408795   .0143303    23.79   0.000     .3127918    .3689671
   sizecat_d6 |   .2532847   .0142598    17.76   0.000     .2253353    .2812342
   sizecat_d7 |   .1745731     .01406    12.42   0.000     .1470153     .202131
   sizecat_d8 |   .1140133   .0136367     8.36   0.000     .0872851    .1407415
   sizecat_d9 |      .0576    .012857     4.48   0.000        .0324       .0828
     age_ele1 |   .0238218   .0020892    11.40   0.000      .019727    .0279165
diff_jkt_ele1 |   -.003428   .0004141    -8.28   0.000    -.0042398   -.0026163
       inter1 |  -.0244468   .0032015    -7.64   0.000    -.0307217   -.0181718
       inter2 |  -.0381972   .0027756   -13.76   0.000    -.0436375   -.0327569
       inter3 |  -.0360802   .0025968   -13.89   0.000    -.0411699   -.0309905
       inter4 |  -.0314004   .0025689   -12.22   0.000    -.0364355   -.0263653
       inter5 |  -.0249584   .0025717    -9.70   0.000     -.029999   -.0199177
       inter6 |   -.021492   .0026098    -8.23   0.000    -.0266073   -.0163766
       inter7 |  -.0143968   .0025581    -5.63   0.000    -.0194107   -.0093828
       inter8 |  -.0105179   .0024693    -4.26   0.000    -.0153577   -.0056781
       inter9 |  -.0061883   .0024265    -2.55   0.011    -.0109443   -.0014323
        _cons |  -.4055764   .0133378   -30.41   0.000    -.4317188    -.379434
-------------------------------------------------------------------------------
(est7 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,501,840
                                                F(35, 43245)      =     542.59
                                                Prob > F          =     0.0000
                                                R-squared         =     0.1064
                                                Root MSE          =     1.1231

                                     (Std. Err. adjusted for 43,246 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0965534   .0017829    54.15   0.000     .0930588     .100048
 diff_jkt_ele1_3 |   .0933866   .0016748    55.76   0.000     .0901041    .0966691
 diff_jkt_ele1_4 |    .086916   .0020431    42.54   0.000     .0829115    .0909204
 diff_jkt_ele1_5 |   .0869976   .0024593    35.37   0.000     .0821773    .0918179
 diff_jkt_ele1_6 |   .0816542   .0026356    30.98   0.000     .0764882    .0868201
 diff_jkt_ele1_7 |   .0783064   .0028225    27.74   0.000     .0727742    .0838385
 diff_jkt_ele1_8 |   .0757487   .0040066    18.91   0.000     .0678957    .0836018
 diff_jkt_ele1_9 |   .0779251   .0053357    14.60   0.000      .067467    .0883832
diff_jkt_ele1_10 |   .0742992   .0090621     8.20   0.000     .0565373    .0920612
          ele1_1 |          0  (omitted)
          ele1_2 |  -.1601886   .0164981    -9.71   0.000    -.1925251   -.1278521
          ele1_3 |  -.1811321    .014631   -12.38   0.000     -.209809   -.1524551
          ele1_4 |  -.1466824   .0132039   -11.11   0.000    -.1725623   -.1208025
          ele1_5 |  -.1193432   .0122024    -9.78   0.000    -.1432602   -.0954262
          ele1_6 |  -.0893229   .0113368    -7.88   0.000    -.1115432   -.0671026
          ele1_7 |  -.0569263   .0107026    -5.32   0.000    -.0779036    -.035949
          ele1_8 |  -.0354227   .0110921    -3.19   0.001    -.0571633    -.013682
          ele1_9 |          0  (omitted)
         ele1_10 |   .0066906    .015168     0.44   0.659    -.0230389    .0364202
      sizecat_d1 |   .9763047   .0169218    57.70   0.000     .9431377    1.009472
      sizecat_d2 |   .7509275   .0156782    47.90   0.000      .720198     .781657
      sizecat_d3 |   .5691839   .0152059    37.43   0.000     .5393801    .5989876
      sizecat_d4 |   .4391097   .0147548    29.76   0.000     .4101899    .4680294
      sizecat_d5 |   .3263254   .0145549    22.42   0.000     .2977976    .3548533
      sizecat_d6 |   .2419232   .0143913    16.81   0.000     .2137159    .2701304
      sizecat_d7 |   .1656033   .0141469    11.71   0.000     .1378751    .1933314
      sizecat_d8 |   .1076321   .0136684     7.87   0.000     .0808417    .1344224
      sizecat_d9 |    .054366   .0128695     4.22   0.000     .0291415    .0795904
          inter1 |  -.0174493   .0032699    -5.34   0.000    -.0238583   -.0110403
          inter2 |  -.0327603   .0028434   -11.52   0.000    -.0383335   -.0271872
          inter3 |  -.0316439   .0026574   -11.91   0.000    -.0368524   -.0264353
          inter4 |   -.027836    .002594   -10.73   0.000    -.0329202   -.0227517
          inter5 |  -.0219759   .0026032    -8.44   0.000    -.0270782   -.0168737
          inter6 |  -.0192214   .0026255    -7.32   0.000    -.0243674   -.0140753
          inter7 |  -.0126205   .0025697    -4.91   0.000     -.017657   -.0075839
          inter8 |  -.0092735   .0024701    -3.75   0.000    -.0141149    -.004432
          inter9 |  -.0055781   .0024268    -2.30   0.022    -.0103347   -.0008216
           _cons |  -.1725367    .012682   -13.60   0.000    -.1973937   -.1476797
----------------------------------------------------------------------------------
(est8 stored)

. 
. set linesize 250

. esttab, mtitles drop(_cons sizecat_d* inter* ele1_*) b(%5.3f) se(%5.3f) compress r2 starlevels(c 0.1 b 0.05 a 0.01)  se 

--------------------------------------------------------------------------------------------------
                 (1)        (2)        (3)        (4)        (5)        (6)        (7)        (8) 
                est1       est2       est3       est4       est5       est6       est7       est8 
--------------------------------------------------------------------------------------------------
diff_jkt       0.098a                0.082a                0.104a                0.103a           
             (0.002)               (0.002)               (0.002)               (0.002)            

size_l1       -0.891a    -0.857a                          -0.184a    -0.180a                      
             (0.015)    (0.015)                          (0.002)    (0.003)                       

age_ele1      -0.039a                0.016a               -0.148a                0.024a           
             (0.001)               (0.002)               (0.003)               (0.002)            

diff_jk~e1    -0.003a               -0.002a               -0.004a               -0.003a           
             (0.000)               (0.000)               (0.000)               (0.000)            

size_l1_~1     0.090a     0.083a                           0.015a     0.014a                      
             (0.002)    (0.002)                          (0.000)    (0.000)                       

diff_jk~_1                0.000                 0.000                 0.000                 0.000 
                            (.)                   (.)                   (.)                   (.) 

diff_jkt~2                0.092a                0.079a                0.098a                0.097a
                        (0.002)               (0.002)               (0.002)               (0.002) 

diff_jkt~3                0.089a                0.077a                0.094a                0.093a
                        (0.002)               (0.002)               (0.002)               (0.002) 

diff_jkt~4                0.083a                0.071a                0.088a                0.087a
                        (0.002)               (0.002)               (0.002)               (0.002) 

diff_jkt~5                0.083a                0.072a                0.087a                0.087a
                        (0.002)               (0.002)               (0.002)               (0.002) 

diff_jkt~6                0.079a                0.068a                0.083a                0.082a
                        (0.002)               (0.002)               (0.002)               (0.003) 

diff_jkt~7                0.077a                0.066a                0.080a                0.078a
                        (0.003)               (0.003)               (0.003)               (0.003) 

diff_jkt~8                0.075a                0.065a                0.077a                0.076a
                        (0.004)               (0.004)               (0.004)               (0.004) 

diff_jkt~9                0.076a                0.068a                0.077a                0.078a
                        (0.005)               (0.005)               (0.005)               (0.005) 

diff_jk~10                0.073a                0.065a                0.074a                0.074a
                        (0.009)               (0.009)               (0.009)               (0.009) 
--------------------------------------------------------------------------------------------------
N            1870377    1870377    1501840    1501840    1870377    1870377    1501840    1501840 
R-sq           0.061      0.063      0.087      0.088      0.092      0.092      0.106      0.106 
--------------------------------------------------------------------------------------------------
Standard errors in parentheses
c p<0.1, b p<0.05, a p<0.01

. esttab, mtitles drop(_cons sizecat_d* inter* ele1_*) b(%5.3f) se(%5.3f) r2  starlevels({$^c$} 0.1 {$^b$} 0.05 {$^a$} 0.01) se tex label  title() 

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{8}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}&\multicolumn{1}{c}{(7)}&\multicolumn{1}{c}{(8)}\\
                    &\multicolumn{1}{c}{est1}&\multicolumn{1}{c}{est2}&\multicolumn{1}{c}{est3}&\multicolumn{1}{c}{est4}&\multicolumn{1}{c}{est5}&\multicolumn{1}{c}{est6}&\multicolumn{1}{c}{est7}&\multicolumn{1}{c}{est8}\\
\hline
$\widehat{a}\_{ijkt}-\varepsilon^q\_{ijk,t-1}$ (for size controls)&       0.098{$^a$}&                  &       0.082{$^a$}&                  &       0.104{$^a$}&                  &       0.103{$^a$}&                  \\
                    &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      &                  \\
[1em]
Size$ \_{ijk,t-1/t}$ &      -0.891{$^a$}&      -0.857{$^a$}&                  &                  &      -0.184{$^a$}&      -0.180{$^a$}&                  &                  \\
                    &     (0.015)      &     (0.015)      &                  &                  &     (0.002)      &     (0.003)      &                  &                  \\
[1em]
Age$ \_{ijkt}$       &      -0.039{$^a$}&                  &       0.016{$^a$}&                  &      -0.148{$^a$}&                  &       0.024{$^a$}&                  \\
                    &     (0.001)      &                  &     (0.002)      &                  &     (0.003)      &                  &     (0.002)      &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}$&      -0.003{$^a$}&                  &      -0.002{$^a$}&                  &      -0.004{$^a$}&                  &      -0.003{$^a$}&                  \\
                    &     (0.000)      &                  &     (0.000)      &                  &     (0.000)      &                  &     (0.000)      &                  \\
[1em]
size\_l1\_ele1        &       0.090{$^a$}&       0.083{$^a$}&                  &                  &       0.015{$^a$}&       0.014{$^a$}&                  &                  \\
                    &     (0.002)      &     (0.002)      &                  &                  &     (0.000)      &     (0.000)      &                  &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=1$&                  &       0.000      &                  &       0.000      &                  &       0.000      &                  &       0.000      \\
                    &                  &         (.)      &                  &         (.)      &                  &         (.)      &                  &         (.)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=2$&                  &       0.092{$^a$}&                  &       0.079{$^a$}&                  &       0.098{$^a$}&                  &       0.097{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=3$&                  &       0.089{$^a$}&                  &       0.077{$^a$}&                  &       0.094{$^a$}&                  &       0.093{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=4$&                  &       0.083{$^a$}&                  &       0.071{$^a$}&                  &       0.088{$^a$}&                  &       0.087{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=5$&                  &       0.083{$^a$}&                  &       0.072{$^a$}&                  &       0.087{$^a$}&                  &       0.087{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=6$&                  &       0.079{$^a$}&                  &       0.068{$^a$}&                  &       0.083{$^a$}&                  &       0.082{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.002)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=7$&                  &       0.077{$^a$}&                  &       0.066{$^a$}&                  &       0.080{$^a$}&                  &       0.078{$^a$}\\
                    &                  &     (0.003)      &                  &     (0.003)      &                  &     (0.003)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=8$&                  &       0.075{$^a$}&                  &       0.065{$^a$}&                  &       0.077{$^a$}&                  &       0.076{$^a$}\\
                    &                  &     (0.004)      &                  &     (0.004)      &                  &     (0.004)      &                  &     (0.004)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=9$&                  &       0.076{$^a$}&                  &       0.068{$^a$}&                  &       0.077{$^a$}&                  &       0.078{$^a$}\\
                    &                  &     (0.005)      &                  &     (0.005)      &                  &     (0.005)      &                  &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=10$&                  &       0.073{$^a$}&                  &       0.065{$^a$}&                  &       0.074{$^a$}&                  &       0.074{$^a$}\\
                    &                  &     (0.009)      &                  &     (0.009)      &                  &     (0.009)      &                  &     (0.009)      \\
\hline
Observations        &     1870377      &     1870377      &     1501840      &     1501840      &     1870377      &     1870377      &     1501840      &     1501840      \\
\(R^{2}\)           &       0.061      &       0.063      &       0.087      &       0.088      &       0.092      &       0.092      &       0.106      &       0.106      \\
\hline\hline
\multicolumn{9}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{9}{l}{\footnotesize {$^c$} p<0.1, {$^b$} p<0.05, {$^a$} p<0.01}\\
\end{tabular}
}

. eststo clear

. 
. 
. * Table A.10 : including interaction shock*size *
. 
. *With values
. use $Output\dataset_brv_fe, clear

. global condition  "entry_ele!=1994 & entry_ele!=1995"

. 
. sort ijk year

. gen size_l1     = value_l1/value_tot_l1
(3,328,694 missing values generated)

. 
. *use version of shock computed with jkt in prices 
. gen diff_jkt_ele1                   = diff_jkt*age_ele1
(3,354,512 missing values generated)

. gen diff_jkt_size_l1            = diff_jkt*size_l1
(3,354,512 missing values generated)

. gen size_l1_ele1                        = age_ele1*size_l1
(3,328,694 missing values generated)

. 
. forvalues x = 1(1)10{
  2.         g diff_jkt_ele1_`x'             = diff_jkt * ele1_`x' 
  3. }
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)

. *
. foreach var in diff_jkt{
  2.         /*jkt in prices and size linear: size_l1, control for size interacted with age*/
.         eststo: reg dprior `var' size_l1 age_ele1 `var'_ele1 size_l1_ele1 diff_jkt_size_l1 if $condition, r cluster(i)
  3.         eststo: reg dprior `var'_ele1_* ele1_* size_l1       size_l1_ele1 diff_jkt_size_l1 if $condition, r cluster(i)
  4. *
.                 foreach size in size_l1{
  5.                 * 10 bins *
.                 egen jkt_hs4 = group(country hs4 year)
  6.                 bys jkt_hs4: egen num_hs4 = count(`size')       
  7.                 forvalues x = 10(10)90{
  8.                 bys jkt_hs4: egen p_`x'_size_l1 = pctile(`size') if num_hs4>9, p(`x')
  9.                 }
 10.                 gen sizecat      = 1  if `size'< p_10_size_l1 & `size' !=. & p_10_size_l1!=.
 11.                 replace sizecat  = 2  if `size'>=p_10_size_l1 & `size'<p_20_size_l1 & size_l1 !=. 
 12.                 replace sizecat  = 3  if `size'>=p_20_size_l1 & `size'<p_30_size_l1 & size_l1 !=.
 13.                 replace sizecat  = 4  if `size'>=p_30_size_l1 & `size'<p_40_size_l1 & size_l1 !=.
 14.                 replace sizecat  = 5  if `size'>=p_40_size_l1 & `size'<p_50_size_l1 & size_l1 !=.
 15.                 replace sizecat  = 6  if `size'>=p_50_size_l1 & `size'<p_60_size_l1 & size_l1 !=.
 16.                 replace sizecat  = 7  if `size'>=p_60_size_l1 & `size'<p_70_size_l1 & size_l1 !=.
 17.                 replace sizecat  = 8  if `size'>=p_70_size_l1 & `size'<p_80_size_l1 & size_l1 !=.
 18.                 replace sizecat  = 9  if `size'>=p_80_size_l1 & `size'<p_90_size_l1 & size_l1 !=.
 19.                 replace sizecat  = 10 if `size'>=p_90_size_l1 & `size' !=. & p_90_size_l1!=.
 20. 
.                 tab sizecat, gen(sizecat_d)
 21.                 forvalues x = 1(1)10{
 22.                 qui gen inter`x' = age_ele1 *  sizecat_d`x'
 23.                 qui gen inter2`x' = diff_jkt *  sizecat_d`x'
 24.                 }
 25.                 drop sizecat_d10 inter10
 26.         }
 27.         /*size non linear*/
.         reg dprior `var' age_ele1 `var'_ele1                                                    if $condition & sizecat!=., r cluster(i)
 28.         eststo: reg dprior `var' sizecat_d* age_ele1 `var'_ele1 inter*      if $condition, r cluster(i)
 29.         eststo: reg dprior `var'_ele1_2-`var'_ele1_10 ele1_* sizecat_d* inter22-inter210                        if $condition, r cluster(i)
 30.         
.         label var size_l1                       "Size$ _{ijk,t-1/t}$"
 31.         label var `var'_size_l1         "\hspace{1cm} $\times$ Size$ _{ijk,t-1/t}$"
 32.         label var  age_ele1                     "Age$ _{ijkt}$" 
 33.         label var diff_jkt_ele1         "\hspace{1cm} $\times$ Age$ _{ijkt}$"
 34.         label var diff_jkt_ele1_1       "\hspace{1cm} $\times$ Age$ _{ijkt}=1$" 
 35.         label var diff_jkt_ele1_2       "\hspace{1cm} $\times$ Age$ _{ijkt}=2$" 
 36.         label var diff_jkt_ele1_3       "\hspace{1cm} $\times$ Age$ _{ijkt}=3$" 
 37.         label var diff_jkt_ele1_4       "\hspace{1cm} $\times$ Age$ _{ijkt}=4$"
 38.         label var diff_jkt_ele1_5       "\hspace{1cm} $\times$ Age$ _{ijkt}=5$" 
 39.         label var diff_jkt_ele1_6       "\hspace{1cm} $\times$ Age$ _{ijkt}=6$"
 40.         label var diff_jkt_ele1_7       "\hspace{1cm} $\times$ Age$ _{ijkt}=7$"
 41.         label var diff_jkt_ele1_8       "\hspace{1cm} $\times$ Age$ _{ijkt}=8$" 
 42.         label var diff_jkt_ele1_9       "\hspace{1cm} $\times$ Age$ _{ijkt}=9$" 
 43.         label var diff_jkt_ele1_10      "\hspace{1cm} $\times$ Age$ _{ijkt}=10$" 
 44.         
.         drop p_* num_hs4 jkt_hs4 sizecat* inter* 
 45.         *
. }

Linear regression                               Number of obs     =  1,870,377
                                                F(6, 45708)       =    1613.17
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0636
                                                Root MSE          =     1.1588

                                     (Std. Err. adjusted for 45,709 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        diff_jkt |   .1023711   .0020582    49.74   0.000      .098337    .1064052
         size_l1 |  -1.052741   .0160279   -65.68   0.000    -1.084156   -1.021326
        age_ele1 |  -.0401438   .0007582   -52.95   0.000    -.0416298   -.0386577
   diff_jkt_ele1 |  -.0035122   .0004236    -8.29   0.000    -.0043424    -.002682
    size_l1_ele1 |   .1088005   .0026003    41.84   0.000     .1037038    .1138971
diff_jkt_size_l1 |   .0109529   .0059436     1.84   0.065    -.0006968    .0226025
           _cons |   .2363885   .0029936    78.96   0.000     .2305209    .2422561
----------------------------------------------------------------------------------
(est1 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,870,377
                                                F(20, 45708)      =     630.88
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0648
                                                Root MSE          =      1.158

                                     (Std. Err. adjusted for 45,709 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0955134   .0017732    53.86   0.000     .0920378    .0989889
 diff_jkt_ele1_3 |   .0920729   .0016923    54.41   0.000      .088756    .0953899
 diff_jkt_ele1_4 |   .0858864   .0020845    41.20   0.000     .0818007    .0899722
 diff_jkt_ele1_5 |   .0848528   .0025317    33.52   0.000     .0798905     .089815
 diff_jkt_ele1_6 |   .0809182    .002575    31.42   0.000     .0758712    .0859653
 diff_jkt_ele1_7 |   .0778533   .0029016    26.83   0.000     .0721661    .0835404
 diff_jkt_ele1_8 |    .074878   .0039752    18.84   0.000     .0670864    .0826695
 diff_jkt_ele1_9 |   .0750767   .0051684    14.53   0.000     .0649464    .0852069
diff_jkt_ele1_10 |   .0722503   .0092545     7.81   0.000     .0541115    .0903892
          ele1_1 |          0  (omitted)
          ele1_2 |   .2171481   .0099406    21.84   0.000     .1976643    .2366318
          ele1_3 |   .0878336   .0098418     8.92   0.000     .0685435    .1071236
          ele1_4 |   .0592634   .0096417     6.15   0.000     .0403655    .0781614
          ele1_5 |   .0377334   .0098904     3.82   0.000     .0183481    .0571187
          ele1_6 |   .0250248   .0097406     2.57   0.010     .0059331    .0441166
          ele1_7 |   .0171219   .0097655     1.75   0.080    -.0020187    .0362624
          ele1_8 |   .0012831   .0103958     0.12   0.902    -.0190929    .0216591
          ele1_9 |          0  (omitted)
         ele1_10 |  -.0355372   .0143859    -2.47   0.014    -.0637338   -.0073406
         size_l1 |   -1.01411   .0165865   -61.14   0.000     -1.04662   -.9816004
    size_l1_ele1 |   .1008371   .0025858    39.00   0.000      .095769    .1059053
diff_jkt_size_l1 |   .0110489   .0059271     1.86   0.062    -.0005684    .0226662
           _cons |  -.0258687   .0096438    -2.68   0.007    -.0447707   -.0069668
----------------------------------------------------------------------------------
(est2 stored)
(3328725 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(6,798,529 missing values generated)
(308,158 real changes made)
(302,179 real changes made)
(310,397 real changes made)
(318,004 real changes made)
(295,670 real changes made)
(303,274 real changes made)
(309,274 real changes made)
(301,049 real changes made)
(343,332 real changes made)

    sizecat |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |    276,848        9.02        9.02
          2 |    308,158       10.04       19.07
          3 |    302,179        9.85       28.92
          4 |    310,397       10.12       39.03
          5 |    318,004       10.36       49.40
          6 |    295,670        9.64       59.03
          7 |    303,274        9.88       68.92
          8 |    309,274       10.08       79.00
          9 |    301,049        9.81       88.81
         10 |    343,332       11.19      100.00
------------+-----------------------------------
      Total |  3,068,185      100.00

Linear regression                               Number of obs     =  1,501,840
                                                F(3, 43245)       =    1914.30
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0510
                                                Root MSE          =     1.1574

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1008809    .002127    47.43   0.000     .0967119    .1050498
     age_ele1 |  -.0349915    .000769   -45.50   0.000    -.0364987   -.0334843
diff_jkt_ele1 |  -.0033358   .0004271    -7.81   0.000    -.0041729   -.0024987
        _cons |   .1579823   .0028165    56.09   0.000      .152462    .1635027
-------------------------------------------------------------------------------
note: inter29 omitted because of collinearity

Linear regression                               Number of obs     =  1,501,840
                                                F(30, 43245)      =     578.03
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0952
                                                Root MSE          =     1.1301

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .0902962   .0029444    30.67   0.000     .0845251    .0960672
   sizecat_d1 |   .9590288   .0130669    73.39   0.000     .9334175    .9846402
   sizecat_d2 |   .7199572   .0124375    57.89   0.000     .6955795     .744335
   sizecat_d3 |   .5646142   .0123572    45.69   0.000     .5403938    .5888345
   sizecat_d4 |   .4562127   .0122067    37.37   0.000     .4322874    .4801381
   sizecat_d5 |   .3582963    .011723    30.56   0.000      .335319    .3812736
   sizecat_d6 |   .2728797   .0119925    22.75   0.000     .2493742    .2963852
   sizecat_d7 |     .21526    .011846    18.17   0.000     .1920416    .2384783
   sizecat_d8 |   .1637241   .0110226    14.85   0.000     .1421197    .1853285
   sizecat_d9 |   .0851776   .0110114     7.74   0.000      .063595    .1067601
     age_ele1 |   .0191131   .0017257    11.08   0.000     .0157307    .0224955
diff_jkt_ele1 |  -.0028862   .0004297    -6.72   0.000    -.0037284   -.0020441
       inter1 |  -.0329186   .0028109   -11.71   0.000    -.0384281   -.0274091
      inter21 |   .0152152   .0032384     4.70   0.000     .0088678    .0215627
       inter2 |  -.0420633   .0025214   -16.68   0.000    -.0470053   -.0371213
      inter22 |   .0148565   .0033304     4.46   0.000     .0083288    .0213842
       inter3 |     -.0405   .0024279   -16.68   0.000    -.0452587   -.0357412
      inter23 |   .0112246    .003272     3.43   0.001     .0048114    .0176377
       inter4 |  -.0371893    .002307   -16.12   0.000     -.041711   -.0326676
      inter24 |   .0127022   .0025509     4.98   0.000     .0077024    .0177021
       inter5 |   -.031017    .002297   -13.50   0.000    -.0355193   -.0265148
      inter25 |   .0106746   .0029224     3.65   0.000     .0049466    .0164026
       inter6 |  -.0246642   .0023242   -10.61   0.000    -.0292196   -.0201088
      inter26 |   .0121815   .0026134     4.66   0.000     .0070592    .0173038
       inter7 |  -.0217912   .0023233    -9.38   0.000    -.0263449   -.0172374
      inter27 |   .0074641   .0026642     2.80   0.005     .0022422    .0126861
       inter8 |  -.0186382   .0022127    -8.42   0.000     -.022975   -.0143013
      inter28 |   .0040673   .0026736     1.52   0.128    -.0011729    .0093076
       inter9 |  -.0097136   .0022028    -4.41   0.000    -.0140311   -.0053962
      inter29 |          0  (omitted)
     inter210 |   .0051418   .0028887     1.78   0.075    -.0005202    .0108038
        _cons |  -.3618842   .0102961   -35.15   0.000    -.3820648   -.3417036
-------------------------------------------------------------------------------
(est3 stored)
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,501,840
                                                F(42, 43245)      =     454.31
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0956
                                                Root MSE          =     1.1299

                                     (Std. Err. adjusted for 43,246 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_2 |   .0995883   .0026207    38.00   0.000     .0944517    .1047249
 diff_jkt_ele1_3 |    .097793   .0026657    36.69   0.000     .0925682    .1030178
 diff_jkt_ele1_4 |   .0920022   .0029171    31.54   0.000     .0862846    .0977198
 diff_jkt_ele1_5 |   .0923817   .0033336    27.71   0.000     .0858478    .0989157
 diff_jkt_ele1_6 |   .0872722   .0034069    25.62   0.000     .0805946    .0939499
 diff_jkt_ele1_7 |   .0843401   .0035461    23.78   0.000     .0773897    .0912905
 diff_jkt_ele1_8 |   .0821577   .0049459    16.61   0.000     .0724636    .0918518
 diff_jkt_ele1_9 |    .083891   .0061371    13.67   0.000     .0718621    .0959198
diff_jkt_ele1_10 |   .0813411   .0100809     8.07   0.000     .0615823    .1010999
          ele1_1 |          0  (omitted)
          ele1_2 |   -.005197   .0119327    -0.44   0.663    -.0285854    .0181914
          ele1_3 |  -.0730391   .0112976    -6.47   0.000    -.0951827   -.0508956
          ele1_4 |  -.0644544    .010798    -5.97   0.000    -.0856186   -.0432902
          ele1_5 |  -.0572622   .0106734    -5.36   0.000    -.0781822   -.0363422
          ele1_6 |  -.0449696   .0104638    -4.30   0.000    -.0654787   -.0244604
          ele1_7 |  -.0292158   .0103011    -2.84   0.005    -.0494062   -.0090253
          ele1_8 |  -.0215777   .0109742    -1.97   0.049    -.0430873    -.000068
          ele1_9 |          0  (omitted)
         ele1_10 |  -.0050347   .0151311    -0.33   0.739     -.034692    .0246225
      sizecat_d1 |   .8257719   .0111917    73.78   0.000      .803836    .8477079
      sizecat_d2 |   .5580311    .009393    59.41   0.000     .5396207    .5764415
      sizecat_d3 |     .45808   .0114427    40.03   0.000      .435652     .480508
      sizecat_d4 |   .3546177   .0112308    31.58   0.000     .3326051    .3766304
      sizecat_d5 |   .2606192   .0107609    24.22   0.000     .2395277    .2817107
      sizecat_d6 |   .1792152   .0111506    16.07   0.000     .1573598    .2010706
      sizecat_d7 |   .1253228   .0108557    11.54   0.000     .1040455    .1466001
      sizecat_d8 |   .0770301   .0100452     7.67   0.000     .0573414    .0967188
      sizecat_d9 |   .0021474   .0101811     0.21   0.833    -.0178078    .0221026
         inter22 |   -.000257   .0028788    -0.09   0.929    -.0058995    .0053856
          inter3 |  -.0155611    .002015    -7.72   0.000    -.0195106   -.0116115
         inter23 |  -.0040299   .0028194    -1.43   0.153     -.009556    .0014963
          inter4 |  -.0134418   .0019376    -6.94   0.000    -.0172396    -.009644
         inter24 |  -.0025682   .0027848    -0.92   0.356    -.0080264      .00289
          inter5 |  -.0081826   .0020003    -4.09   0.000    -.0121032    -.004262
         inter25 |  -.0046602    .002546    -1.83   0.067    -.0096505    .0003301
          inter6 |  -.0027208   .0021217    -1.28   0.200    -.0068793    .0014377
         inter26 |  -.0031441   .0026341    -1.19   0.233    -.0083069    .0020188
          inter7 |  -.0006487   .0020827    -0.31   0.755    -.0047307    .0034334
         inter27 |  -.0078696   .0026062    -3.02   0.003    -.0129777   -.0027615
          inter8 |   .0018139   .0019843     0.91   0.361    -.0020754    .0057031
         inter28 |  -.0112071   .0030574    -3.67   0.000    -.0171997   -.0052146
          inter9 |   .0099972   .0020509     4.87   0.000     .0059773     .014017
         inter29 |  -.0152161   .0031871    -4.77   0.000     -.021463   -.0089693
        inter210 |  -.0102797    .003577    -2.87   0.004    -.0172907   -.0032686
           _cons |  -.2392108   .0110849   -21.58   0.000    -.2609375   -.2174841
----------------------------------------------------------------------------------
(est4 stored)

.         
. *with quantities 
. 
. use $Output\dataset_brv_fe, clear

. global condition  "entry_ele!=1994 & entry_ele!=1995"

. 
. sort ijk year

. gen size_l1     = quantity_l1/quantity_tot_l1
(3,328,694 missing values generated)

. 
. *use version of shock computed with jkt in prices 
. gen diff_jkt_ele1                   = diff_jkt*age_ele1
(3,354,512 missing values generated)

. gen diff_jkt_size_l1            = diff_jkt*size_l1
(3,354,512 missing values generated)

. gen size_l1_ele1                        = age_ele1*size_l1
(3,328,694 missing values generated)

. 
. forvalues x = 1(1)10{
  2.         g diff_jkt_ele1_`x'             = diff_jkt * ele1_`x' 
  3. }
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)
(3,354,512 missing values generated)

. *
. foreach var in diff_jkt{
  2.         /*jkt in prices and size linear: size_l1, control for size interacted with age*/
.         eststo: reg dprior `var' size_l1 age_ele1 `var'_ele1 size_l1_ele1 diff_jkt_size_l1 if $condition, r cluster(i)
  3.         eststo: reg dprior `var'_ele1_* ele1_* size_l1       size_l1_ele1 diff_jkt_size_l1 if $condition, r cluster(i)
  4. *
.                 foreach size in size_l1{
  5.                 * 10 bins *
.                 egen jkt_hs4 = group(country hs4 year)
  6.                 bys jkt_hs4: egen num_hs4 = count(`size')       
  7.                 forvalues x = 10(10)90{
  8.                 bys jkt_hs4: egen p_`x'_size_l1 = pctile(`size') if num_hs4>9, p(`x')
  9.                 }
 10.                 gen sizecat      = 1  if `size'< p_10_size_l1 & `size' !=. & p_10_size_l1!=.
 11.                 replace sizecat  = 2  if `size'>=p_10_size_l1 & `size'<p_20_size_l1 & size_l1 !=. 
 12.                 replace sizecat  = 3  if `size'>=p_20_size_l1 & `size'<p_30_size_l1 & size_l1 !=.
 13.                 replace sizecat  = 4  if `size'>=p_30_size_l1 & `size'<p_40_size_l1 & size_l1 !=.
 14.                 replace sizecat  = 5  if `size'>=p_40_size_l1 & `size'<p_50_size_l1 & size_l1 !=.
 15.                 replace sizecat  = 6  if `size'>=p_50_size_l1 & `size'<p_60_size_l1 & size_l1 !=.
 16.                 replace sizecat  = 7  if `size'>=p_60_size_l1 & `size'<p_70_size_l1 & size_l1 !=.
 17.                 replace sizecat  = 8  if `size'>=p_70_size_l1 & `size'<p_80_size_l1 & size_l1 !=.
 18.                 replace sizecat  = 9  if `size'>=p_80_size_l1 & `size'<p_90_size_l1 & size_l1 !=.
 19.                 replace sizecat  = 10 if `size'>=p_90_size_l1 & `size' !=. & p_90_size_l1!=.
 20. 
.                 tab sizecat, gen(sizecat_d)
 21.                 forvalues x = 1(1)10{
 22.                 qui gen inter`x' = age_ele1 *  sizecat_d`x'
 23.                 qui gen inter2`x' = diff_jkt *  sizecat_d`x'
 24.                 }
 25.                 drop sizecat_d10 inter10
 26.         }
 27.         /*size non linear*/
.         reg dprior `var' age_ele1 `var'_ele1                                                    if $condition & sizecat!=., r cluster(i)
 28.         eststo: reg dprior `var' sizecat_d* age_ele1 `var'_ele1 inter*      if $condition, r cluster(i)
 29.         eststo: reg dprior `var'_ele1_2-`var'_ele1_10 ele1_* sizecat_d* inter22-inter210                        if $condition, r cluster(i)
 30.         
.         label var size_l1                       "Size$ _{ijk,t-1/t}$"
 31.         label var `var'_size_l1         "\hspace{1cm} $\times$ Size$ _{ijk,t-1/t}$"
 32.         label var  age_ele1                     "Age$ _{ijkt}$" 
 33.         label var diff_jkt_ele1         "\hspace{1cm} $\times$ Age$ _{ijkt}$"
 34.         label var diff_jkt_ele1_1       "\hspace{1cm} $\times$ Age$ _{ijkt}=1$" 
 35.         label var diff_jkt_ele1_2       "\hspace{1cm} $\times$ Age$ _{ijkt}=2$" 
 36.         label var diff_jkt_ele1_3       "\hspace{1cm} $\times$ Age$ _{ijkt}=3$" 
 37.         label var diff_jkt_ele1_4       "\hspace{1cm} $\times$ Age$ _{ijkt}=4$"
 38.         label var diff_jkt_ele1_5       "\hspace{1cm} $\times$ Age$ _{ijkt}=5$" 
 39.         label var diff_jkt_ele1_6       "\hspace{1cm} $\times$ Age$ _{ijkt}=6$"
 40.         label var diff_jkt_ele1_7       "\hspace{1cm} $\times$ Age$ _{ijkt}=7$"
 41.         label var diff_jkt_ele1_8       "\hspace{1cm} $\times$ Age$ _{ijkt}=8$" 
 42.         label var diff_jkt_ele1_9       "\hspace{1cm} $\times$ Age$ _{ijkt}=9$" 
 43.         label var diff_jkt_ele1_10      "\hspace{1cm} $\times$ Age$ _{ijkt}=10$" 
 44.         
.         drop p_* num_hs4 jkt_hs4 sizecat* inter* 
 45.         *
. }

Linear regression                               Number of obs     =  1,870,377
                                                F(6, 45708)       =    1683.04
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0613
                                                Root MSE          =     1.1602

                                     (Std. Err. adjusted for 45,709 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        diff_jkt |   .0974346   .0019767    49.29   0.000     .0935603    .1013089
         size_l1 |  -.8837526   .0149003   -59.31   0.000    -.9129575   -.8545477
        age_ele1 |  -.0390896   .0007596   -51.46   0.000    -.0405784   -.0376008
   diff_jkt_ele1 |  -.0030666   .0004173    -7.35   0.000    -.0038844   -.0022487
    size_l1_ele1 |   .0900706   .0024221    37.19   0.000     .0853232    .0948179
diff_jkt_size_l1 |   .0078447   .0049176     1.60   0.111    -.0017938    .0174833
           _cons |   .2233711   .0029696    75.22   0.000     .2175506    .2291916
----------------------------------------------------------------------------------
(est5 stored)
note: diff_jkt_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,870,377
                                                F(20, 45708)      =     657.02
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0627
                                                Root MSE          =     1.1593

                                     (Std. Err. adjusted for 45,709 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_1 |          0  (omitted)
 diff_jkt_ele1_2 |   .0917136   .0016721    54.85   0.000     .0884362    .0949909
 diff_jkt_ele1_3 |   .0881551   .0016136    54.63   0.000     .0849923    .0913178
 diff_jkt_ele1_4 |   .0824782   .0020125    40.98   0.000     .0785335    .0864228
 diff_jkt_ele1_5 |   .0817346     .00244    33.50   0.000     .0769522    .0865169
 diff_jkt_ele1_6 |   .0785758   .0025142    31.25   0.000      .073648    .0835036
 diff_jkt_ele1_7 |   .0759911   .0028307    26.85   0.000     .0704429    .0815394
 diff_jkt_ele1_8 |   .0736673   .0038897    18.94   0.000     .0660434    .0812911
 diff_jkt_ele1_9 |   .0745824   .0051107    14.59   0.000     .0645653    .0845995
diff_jkt_ele1_10 |    .072269   .0092582     7.81   0.000     .0541229    .0904152
          ele1_1 |          0  (omitted)
          ele1_2 |   .2081548   .0099614    20.90   0.000     .1886303    .2276793
          ele1_3 |   .0767583   .0098443     7.80   0.000     .0574632    .0960533
          ele1_4 |   .0490917    .009632     5.10   0.000     .0302128    .0679705
          ele1_5 |    .029111   .0098806     2.95   0.003     .0097449    .0484771
          ele1_6 |   .0185109   .0097446     1.90   0.057    -.0005887    .0376106
          ele1_7 |   .0128877   .0097684     1.32   0.187    -.0062584    .0320339
          ele1_8 |  -.0008212   .0103968    -0.08   0.937    -.0211991    .0195567
          ele1_9 |          0  (omitted)
         ele1_10 |  -.0329678   .0143659    -2.29   0.022    -.0611252   -.0048104
         size_l1 |  -.8490526   .0153242   -55.41   0.000    -.8790884   -.8190169
    size_l1_ele1 |   .0829538   .0023822    34.82   0.000     .0782845     .087623
diff_jkt_size_l1 |   .0088408    .004927     1.79   0.073    -.0008161    .0184977
           _cons |  -.0261828   .0096078    -2.73   0.006    -.0450143   -.0073513
----------------------------------------------------------------------------------
(est6 stored)
(3328725 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(678498 missing values generated)
(6,800,885 missing values generated)
(308,927 real changes made)
(302,744 real changes made)
(310,728 real changes made)
(318,268 real changes made)
(295,802 real changes made)
(303,408 real changes made)
(309,343 real changes made)
(301,111 real changes made)
(343,362 real changes made)

    sizecat |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |    274,492        8.95        8.95
          2 |    308,927       10.07       19.02
          3 |    302,744        9.87       28.88
          4 |    310,728       10.13       39.01
          5 |    318,268       10.37       49.38
          6 |    295,802        9.64       59.02
          7 |    303,408        9.89       68.91
          8 |    309,343       10.08       78.99
          9 |    301,111        9.81       88.81
         10 |    343,362       11.19      100.00
------------+-----------------------------------
      Total |  3,068,185      100.00

Linear regression                               Number of obs     =  1,501,840
                                                F(3, 43245)       =    1914.30
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0510
                                                Root MSE          =     1.1574

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .1008809    .002127    47.43   0.000     .0967119    .1050498
     age_ele1 |  -.0349915    .000769   -45.50   0.000    -.0364987   -.0334843
diff_jkt_ele1 |  -.0033358   .0004271    -7.81   0.000    -.0041729   -.0024987
        _cons |   .1579823   .0028165    56.09   0.000      .152462    .1635027
-------------------------------------------------------------------------------
note: inter29 omitted because of collinearity

Linear regression                               Number of obs     =  1,501,840
                                                F(30, 43245)      =     581.00
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0887
                                                Root MSE          =     1.1342

                                  (Std. Err. adjusted for 43,246 clusters in i)
-------------------------------------------------------------------------------
              |               Robust
       dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
     diff_jkt |   .0943329   .0030104    31.34   0.000     .0884325    .1002333
   sizecat_d1 |   .8706441    .013518    64.41   0.000     .8441484    .8971397
   sizecat_d2 |    .688696    .012401    55.54   0.000     .6643898    .7130021
   sizecat_d3 |   .5312412   .0120836    43.96   0.000      .507557    .5549253
   sizecat_d4 |   .4434019    .012361    35.87   0.000     .4191741    .4676297
   sizecat_d5 |   .3557807   .0117084    30.39   0.000      .332832    .3787294
   sizecat_d6 |   .2776539   .0115726    23.99   0.000     .2549713    .3003364
   sizecat_d7 |   .1976315   .0118524    16.67   0.000     .1744007    .2208623
   sizecat_d8 |   .1583856   .0114215    13.87   0.000     .1359992    .1807721
   sizecat_d9 |   .0910049   .0111152     8.19   0.000     .0692188     .112791
     age_ele1 |   .0150542   .0017353     8.68   0.000     .0116529    .0184555
diff_jkt_ele1 |  -.0022036   .0004076    -5.41   0.000    -.0030025   -.0014046
       inter1 |  -.0336913   .0030098   -11.19   0.000    -.0395905    -.027792
      inter21 |   .0066608   .0032539     2.05   0.041      .000283    .0130386
       inter2 |  -.0457495    .002555   -17.91   0.000    -.0507573   -.0407416
      inter22 |  -.0186272   .0027883    -6.68   0.000    -.0240924    -.013162
       inter3 |  -.0391182   .0023554   -16.61   0.000    -.0437348   -.0345015
      inter23 |    -.02679   .0026235   -10.21   0.000     -.031932    -.021648
       inter4 |  -.0377618   .0024118   -15.66   0.000    -.0424888   -.0330347
      inter24 |  -.0251315   .0027788    -9.04   0.000     -.030578    -.019685
       inter5 |  -.0329741   .0023046   -14.31   0.000    -.0374912    -.028457
      inter25 |  -.0228668   .0027675    -8.26   0.000    -.0282912   -.0174423
       inter6 |  -.0271591   .0022711   -11.96   0.000    -.0316106   -.0227076
      inter26 |  -.0212506   .0026601    -7.99   0.000    -.0264644   -.0160368
       inter7 |  -.0198942   .0023814    -8.35   0.000    -.0245617   -.0152266
      inter27 |   -.020071   .0030686    -6.54   0.000    -.0260854   -.0140565
       inter8 |  -.0195617   .0022762    -8.59   0.000    -.0240232   -.0151003
      inter28 |  -.0113243   .0026576    -4.26   0.000    -.0165332   -.0061154
       inter9 |  -.0120715   .0022684    -5.32   0.000    -.0165176   -.0076255
      inter29 |          0  (omitted)
     inter210 |   .0171549    .002906     5.90   0.000      .011459    .0228507
        _cons |   -.317873   .0100032   -31.78   0.000    -.3374794   -.2982666
-------------------------------------------------------------------------------
(est7 stored)
note: ele1_1 omitted because of collinearity
note: ele1_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,501,840
                                                F(42, 43245)      =     459.98
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0892
                                                Root MSE          =     1.1339

                                     (Std. Err. adjusted for 43,246 clusters in i)
----------------------------------------------------------------------------------
                 |               Robust
          dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
 diff_jkt_ele1_2 |   .0970851   .0028848    33.65   0.000     .0914309    .1027394
 diff_jkt_ele1_3 |   .0949296   .0026516    35.80   0.000     .0897324    .1001268
 diff_jkt_ele1_4 |   .0896075   .0030307    29.57   0.000     .0836673    .0955478
 diff_jkt_ele1_5 |   .0898668   .0034481    26.06   0.000     .0831085    .0966252
 diff_jkt_ele1_6 |   .0853671   .0034072    25.05   0.000      .078689    .0920453
 diff_jkt_ele1_7 |   .0818087     .00373    21.93   0.000     .0744978    .0891197
 diff_jkt_ele1_8 |   .0800343   .0048754    16.42   0.000     .0704784    .0895903
 diff_jkt_ele1_9 |   .0839195   .0057175    14.68   0.000     .0727132    .0951258
diff_jkt_ele1_10 |   .0790165   .0095121     8.31   0.000     .0603726    .0976605
          ele1_1 |          0  (omitted)
          ele1_2 |   .0239957   .0116144     2.07   0.039     .0012313    .0467602
          ele1_3 |   -.058728   .0110059    -5.34   0.000    -.0802998   -.0371561
          ele1_4 |  -.0555605   .0104815    -5.30   0.000    -.0761045   -.0350165
          ele1_5 |  -.0510185   .0103873    -4.91   0.000    -.0713777   -.0306592
          ele1_6 |  -.0409516   .0101274    -4.04   0.000    -.0608014   -.0211017
          ele1_7 |  -.0268215   .0099786    -2.69   0.007    -.0463797   -.0072632
          ele1_8 |  -.0210203   .0107292    -1.96   0.050    -.0420497    9.10e-06
          ele1_9 |          0  (omitted)
         ele1_10 |  -.0058736   .0145468    -0.40   0.686    -.0343856    .0226385
      sizecat_d1 |   .7336433   .0102713    71.43   0.000     .7135112    .7537753
      sizecat_d2 |   .5137515   .0095756    53.65   0.000     .4949832    .5325198
      sizecat_d3 |   .4197968   .0109391    38.38   0.000     .3983559    .4412378
      sizecat_d4 |   .3372143   .0111995    30.11   0.000     .3152632    .3591655
      sizecat_d5 |   .2540824   .0103919    24.45   0.000     .2337141    .2744508
      sizecat_d6 |   .1804506   .0101393    17.80   0.000     .1605773    .2003239
      sizecat_d7 |   .1040416   .0102648    10.14   0.000     .0839224    .1241607
      sizecat_d8 |   .0687971   .0102744     6.70   0.000      .048659    .0889351
      sizecat_d9 |   .0053786   .0099943     0.54   0.590    -.0142106    .0249677
         inter22 |  -.0252612   .0024609   -10.26   0.000    -.0300847   -.0204377
          inter3 |  -.0129136   .0018262    -7.07   0.000     -.016493   -.0093342
         inter23 |  -.0331206   .0026685   -12.41   0.000    -.0383509   -.0278904
          inter4 |  -.0128296   .0019901    -6.45   0.000    -.0167302   -.0089291
         inter24 |  -.0314162   .0031978    -9.82   0.000     -.037684   -.0251484
          inter5 |  -.0091031   .0019307    -4.71   0.000    -.0128873   -.0053189
         inter25 |  -.0290964   .0030898    -9.42   0.000    -.0351526   -.0230403
          inter6 |  -.0042917   .0018988    -2.26   0.024    -.0080134   -.0005699
         inter26 |  -.0273047   .0030301    -9.01   0.000    -.0332438   -.0213656
          inter7 |   .0022173    .002018     1.10   0.272    -.0017381    .0061726
         inter27 |  -.0261141   .0036046    -7.24   0.000    -.0331793    -.019049
          inter8 |   .0017437   .0020386     0.86   0.392    -.0022521    .0057395
         inter28 |  -.0172964   .0031654    -5.46   0.000    -.0235006   -.0110922
          inter9 |   .0083924   .0020521     4.09   0.000     .0043703    .0124145
         inter29 |  -.0058765   .0032224    -1.82   0.068    -.0121925    .0004394
        inter210 |   .0119344   .0033554     3.56   0.000     .0053577    .0185111
           _cons |  -.2262011   .0113057   -20.01   0.000    -.2483605   -.2040418
----------------------------------------------------------------------------------
(est8 stored)

. 
. set linesize 250

. esttab, mtitles drop(_cons sizecat_d* inter* ele1_*) b(%5.3f) se(%5.3f) compress r2 starlevels(c 0.1 b 0.05 a 0.01)  se 

--------------------------------------------------------------------------------------------------
                 (1)        (2)        (3)        (4)        (5)        (6)        (7)        (8) 
                est1       est2       est3       est4       est5       est6       est7       est8 
--------------------------------------------------------------------------------------------------
diff_jkt       0.102a                0.090a                0.097a                0.094a           
             (0.002)               (0.003)               (0.002)               (0.003)            

size_l1       -1.053a    -1.014a                          -0.884a    -0.849a                      
             (0.016)    (0.017)                          (0.015)    (0.015)                       

age_ele1      -0.040a                0.019a               -0.039a                0.015a           
             (0.001)               (0.002)               (0.001)               (0.002)            

diff_jk~e1    -0.004a               -0.003a               -0.003a               -0.002a           
             (0.000)               (0.000)               (0.000)               (0.000)            

size_l1_~1     0.109a     0.101a                           0.090a     0.083a                      
             (0.003)    (0.003)                          (0.002)    (0.002)                       

diff_jk~l1     0.011c     0.011c                           0.008      0.009c                      
             (0.006)    (0.006)                          (0.005)    (0.005)                       

diff_jk~_1                0.000                                       0.000                       
                            (.)                                         (.)                       

diff_jkt~2                0.096a                0.100a                0.092a                0.097a
                        (0.002)               (0.003)               (0.002)               (0.003) 

diff_jkt~3                0.092a                0.098a                0.088a                0.095a
                        (0.002)               (0.003)               (0.002)               (0.003) 

diff_jkt~4                0.086a                0.092a                0.082a                0.090a
                        (0.002)               (0.003)               (0.002)               (0.003) 

diff_jkt~5                0.085a                0.092a                0.082a                0.090a
                        (0.003)               (0.003)               (0.002)               (0.003) 

diff_jkt~6                0.081a                0.087a                0.079a                0.085a
                        (0.003)               (0.003)               (0.003)               (0.003) 

diff_jkt~7                0.078a                0.084a                0.076a                0.082a
                        (0.003)               (0.004)               (0.003)               (0.004) 

diff_jkt~8                0.075a                0.082a                0.074a                0.080a
                        (0.004)               (0.005)               (0.004)               (0.005) 

diff_jkt~9                0.075a                0.084a                0.075a                0.084a
                        (0.005)               (0.006)               (0.005)               (0.006) 

diff_jk~10                0.072a                0.081a                0.072a                0.079a
                        (0.009)               (0.010)               (0.009)               (0.010) 
--------------------------------------------------------------------------------------------------
N            1870377    1870377    1501840    1501840    1870377    1870377    1501840    1501840 
R-sq           0.064      0.065      0.095      0.096      0.061      0.063      0.089      0.089 
--------------------------------------------------------------------------------------------------
Standard errors in parentheses
c p<0.1, b p<0.05, a p<0.01

. esttab, mtitles drop(_cons sizecat_d* inter* ele1_*) b(%5.3f) se(%5.3f) r2  starlevels({$^c$} 0.1 {$^b$} 0.05 {$^a$} 0.01) se tex label  title() 

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{8}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}&\multicolumn{1}{c}{(7)}&\multicolumn{1}{c}{(8)}\\
                    &\multicolumn{1}{c}{est1}&\multicolumn{1}{c}{est2}&\multicolumn{1}{c}{est3}&\multicolumn{1}{c}{est4}&\multicolumn{1}{c}{est5}&\multicolumn{1}{c}{est6}&\multicolumn{1}{c}{est7}&\multicolumn{1}{c}{est8}\\
\hline
$\widehat{a}\_{ijkt}-\varepsilon^q\_{ijk,t-1}$ (for size controls)&       0.102{$^a$}&                  &       0.090{$^a$}&                  &       0.097{$^a$}&                  &       0.094{$^a$}&                  \\
                    &     (0.002)      &                  &     (0.003)      &                  &     (0.002)      &                  &     (0.003)      &                  \\
[1em]
Size$ \_{ijk,t-1/t}$ &      -1.053{$^a$}&      -1.014{$^a$}&                  &                  &      -0.884{$^a$}&      -0.849{$^a$}&                  &                  \\
                    &     (0.016)      &     (0.017)      &                  &                  &     (0.015)      &     (0.015)      &                  &                  \\
[1em]
Age$ \_{ijkt}$       &      -0.040{$^a$}&                  &       0.019{$^a$}&                  &      -0.039{$^a$}&                  &       0.015{$^a$}&                  \\
                    &     (0.001)      &                  &     (0.002)      &                  &     (0.001)      &                  &     (0.002)      &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}$&      -0.004{$^a$}&                  &      -0.003{$^a$}&                  &      -0.003{$^a$}&                  &      -0.002{$^a$}&                  \\
                    &     (0.000)      &                  &     (0.000)      &                  &     (0.000)      &                  &     (0.000)      &                  \\
[1em]
size\_l1\_ele1        &       0.109{$^a$}&       0.101{$^a$}&                  &                  &       0.090{$^a$}&       0.083{$^a$}&                  &                  \\
                    &     (0.003)      &     (0.003)      &                  &                  &     (0.002)      &     (0.002)      &                  &                  \\
[1em]
\hspace{1cm} $\times$ Size$ \_{ijk,t-1/t}$&       0.011{$^c$}&       0.011{$^c$}&                  &                  &       0.008      &       0.009{$^c$}&                  &                  \\
                    &     (0.006)      &     (0.006)      &                  &                  &     (0.005)      &     (0.005)      &                  &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=1$&                  &       0.000      &                  &                  &                  &       0.000      &                  &                  \\
                    &                  &         (.)      &                  &                  &                  &         (.)      &                  &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=2$&                  &       0.096{$^a$}&                  &       0.100{$^a$}&                  &       0.092{$^a$}&                  &       0.097{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.003)      &                  &     (0.002)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=3$&                  &       0.092{$^a$}&                  &       0.098{$^a$}&                  &       0.088{$^a$}&                  &       0.095{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.003)      &                  &     (0.002)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=4$&                  &       0.086{$^a$}&                  &       0.092{$^a$}&                  &       0.082{$^a$}&                  &       0.090{$^a$}\\
                    &                  &     (0.002)      &                  &     (0.003)      &                  &     (0.002)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=5$&                  &       0.085{$^a$}&                  &       0.092{$^a$}&                  &       0.082{$^a$}&                  &       0.090{$^a$}\\
                    &                  &     (0.003)      &                  &     (0.003)      &                  &     (0.002)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=6$&                  &       0.081{$^a$}&                  &       0.087{$^a$}&                  &       0.079{$^a$}&                  &       0.085{$^a$}\\
                    &                  &     (0.003)      &                  &     (0.003)      &                  &     (0.003)      &                  &     (0.003)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=7$&                  &       0.078{$^a$}&                  &       0.084{$^a$}&                  &       0.076{$^a$}&                  &       0.082{$^a$}\\
                    &                  &     (0.003)      &                  &     (0.004)      &                  &     (0.003)      &                  &     (0.004)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=8$&                  &       0.075{$^a$}&                  &       0.082{$^a$}&                  &       0.074{$^a$}&                  &       0.080{$^a$}\\
                    &                  &     (0.004)      &                  &     (0.005)      &                  &     (0.004)      &                  &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=9$&                  &       0.075{$^a$}&                  &       0.084{$^a$}&                  &       0.075{$^a$}&                  &       0.084{$^a$}\\
                    &                  &     (0.005)      &                  &     (0.006)      &                  &     (0.005)      &                  &     (0.006)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=10$&                  &       0.072{$^a$}&                  &       0.081{$^a$}&                  &       0.072{$^a$}&                  &       0.079{$^a$}\\
                    &                  &     (0.009)      &                  &     (0.010)      &                  &     (0.009)      &                  &     (0.010)      \\
\hline
Observations        &     1870377      &     1870377      &     1501840      &     1501840      &     1870377      &     1870377      &     1501840      &     1501840      \\
\(R^{2}\)           &       0.064      &       0.065      &       0.095      &       0.096      &       0.061      &       0.063      &       0.089      &       0.089      \\
\hline\hline
\multicolumn{9}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{9}{l}{\footnotesize {$^c$} p<0.1, {$^b$} p<0.05, {$^a$} p<0.01}\\
\end{tabular}
}

. eststo clear

. 
. log close
      name:  <unnamed>
       log:  D:\Vicard\VV\re\inprogress\BRV\results\results_size.log
  log type:  text
 closed on:  29 Sep 2017, 20:04:09
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
